NetEscapades.AspNetCore.StartupTasks icon indicating copy to clipboard operation
NetEscapades.AspNetCore.StartupTasks copied to clipboard

What about testing?

Open davidpeden3 opened this issue 6 years ago • 1 comments

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()?

davidpeden3 avatar Jan 17 '19 20:01 davidpeden3

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! 😀

andrewlock avatar Jan 17 '19 20:01 andrewlock