NetEscapades.AspNetCore.StartupTasks
NetEscapades.AspNetCore.StartupTasks copied to clipboard
What about testing?
TestServer only takes an IWebHostBuilder. Is there a better way than implementing that interface and returning your manually constructed IWebHost that you've already called .Build().RunWithTasksAsync() on in .Build()?
a) I would have thought that generally you don't want to run those startup tasks during testing b) You're describing approach 1 from my post, this library only implements approach 2, so it doesn't apply! 😀