xUnit and Dependency Injection
Hello,
I have not ran too many unit testings up through my time, but recently getting into a bit more of a heavy program where unit testing will be crucial.
The project is dependent on Dependency Injection, and I was wondering if its possible to run unit tests on methods from DI services...?
I have currently a Core Project and a Test Project, and I want to be able to get a DI service from the Core Project and run a test with it inside the test project.
How would I be able to do this?
Any help is appreciated,
Thanks
I have not ran too many unit testings up through my time, but recently getting into a bit more of a heavy program where unit testing will be crucial.
The project is dependent on Dependency Injection, and I was wondering if its possible to run unit tests on methods from DI services...?
I have currently a Core Project and a Test Project, and I want to be able to get a DI service from the Core Project and run a test with it inside the test project.
How would I be able to do this?
Any help is appreciated,
Thanks