Add MicCheck.Api.Tests.Integration project
NUnit integration tests that target a running API by URL and seed/clean data directly in Postgres. Settings (BaseUrl, DbConnectionString) come from .runsettings or environment variables so tests can be pointed at any environment. HTTP requests live in HttpFiles/*.http; assertion failures include a fresh DB snapshot of the relevant rows. First test covers the flag-enabled path.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RunSettings>
|
||||
<TestRunParameters>
|
||||
<Parameter name="BaseUrl" value="http://localhost:5000" />
|
||||
<Parameter name="DbConnectionString" value="Host=localhost;Port=5432;Database=miccheck;Username=miccheck;Password=password" />
|
||||
<Parameter name="AcceptAnyServerCertificate" value="true" />
|
||||
</TestRunParameters>
|
||||
</RunSettings>
|
||||
Reference in New Issue
Block a user