-
Verify that TurnerStarterApi.Api is selected as the StartUp Project
-
In
TurnerStarterApi.Core -> appsettings.json
, verify that the server name in the DataContext connection string is for the desired SQL Server instance. -
Verify for
TurnerStarterApi.Tests.Integration -> appsettings.json
as well. -
In the Package Manager Console, select
src\TurnerStarterApi.Core
as the Default project and runUpdate-Database
. -
Press
F5
to run the API.
-
The current configuration requires that NCrunch be configured to run on a single thread. This can be configured by selecting NCrunch -> Run Configuration Wizard and setting the number of background process threads to 1.
-
Note: This is only required because NCrunch does not follow NUnit's
[OneTimeSetUp]
attribute, which is utilized inAssemblySetup.cs
to initialize the testing environment.