null
How do I properly unit test a post request?
When unit testing, you should only mock the external dependencies of your system under test.
So in your case,
_facilityService
is the sut
and everything else is an external dependency, even the database call.
For that matter, any test that contains some kind of I/O, network hop etc. is considered an integration test.14 replies
❔ Upgrading a solution from .net core 3.1 to .net 6.0
https://learn.microsoft.com/en-us/dotnet/standard/frameworks
maybe try with
<TargetFramework>net6.0</TargetFramework>
5 replies