Using WebApplicationFactory with NUnit

dotnet new -i NUnit3.DotNetNew.Templatedotnet new nunit --framework netcoreapp2.2
Microsoft.AspNetCore.AppMicrosoft.AspNetCore.Mvc.Testing
  1. You can write a SetUpFixture which creates your application once and is used throughout all the tests
  2. Each set of tests can have a OneTimeSetUp which do the same thing
  3. A mix of the two!

--

--

I’m a dotnet developer who currently is working at Commify. I also unfortunately like Ipswich Town football club. It’s a shame they aren’t very good.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Daniel Edwards

Daniel Edwards

I’m a dotnet developer who currently is working at Commify. I also unfortunately like Ipswich Town football club. It’s a shame they aren’t very good.