How to Unit Test DelegateCommand that calls async methods in MVVM

前端 未结 3 1132
無奈伤痛
無奈伤痛 2020-12-09 11:30

I am new to Unit Testing MVVM and using PRISM on my project. I am implementing Unit Testing on our current project and not having luck finding resources online that would te

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-09 11:50

    Since I cannot add comments, for completeness sake, in PRISM 6 you could try:

    ParsingCommand = new DelegateCommand(async (x) => await StartParsing(x));
    

提交回复
热议问题