I have several projects in my solution and each project generates a single EXE. Each EXE is registering different requests and I'd like to unit test that some requests are indeed registered.
My goal would be to do something like that:
var myApp = MyApp.Create();
var request = myApp.Host.Services.GetService<MyRequest>(); // this obviously doesn't work...
Assert.That(requests, Is.Not.Null); // but it's to see what I'd like to be able to test
Hi!
I have several projects in my solution and each project generates a single EXE. Each EXE is registering different requests and I'd like to unit test that some requests are indeed registered.
My goal would be to do something like that: