from I select q[0]
✅ unit testing ViemModels
I am very new to unit testing, and I have a typical example where I have a constructor with 4 services 3 of which is DI and one concrete generic for navigation
E.g public
I have be having problem testing because I need to create a moq of E<F> and because of the way it is setup it's hard to abstract to interface.
Does it make sense to create IViewModel
And then have
Class ViewModel:IViewModel
And mock IViewModel instead? Is this the recommended approach? Is this good or bad ?
9 replies
❔ trying to get published events in one project to the other
I have a Solution with two projects
1. Solution
1a. Project ( winUI3)
1b. Project.core
1a references 1b(core project)
---
i am trying to publish events in 1b(core projects) and subscribe to the events in 1a(Ui projects viewmodel)
2 replies