NUnit, Dependency Injection, Hosting
Now that NUnit supports the new testing platform bits, I was wondering...would it be possible (or is it already supported) to do DI/IoC with test classes?
My idea is this: I create a host in my entry point (which would require turning off the entry point that's automatically generated, and I'm not sure if that's a good idea or not), do all my service registrations and whatnot, and then, in my test, I can have these services injected and use them in my tests. This is primarily for integration or end-to-end testing scenarios.
0 Replies