Merge branch '2.0' into 116-add-loginauth-token-feature-to-net-api

This commit is contained in:
Aaron Po
2026-01-29 22:57:39 -05:00
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using System.Collections.Generic;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Testing;
using Microsoft.Extensions.Configuration;
namespace API.Specs
{
public class TestApiFactory : WebApplicationFactory<Program>
{
protected override void ConfigureWebHost(IWebHostBuilder builder)
{
builder.UseEnvironment("Testing");
builder.ConfigureAppConfiguration((context, configBuilder) =>
{
var connectionString = Environment.GetEnvironmentVariable("DB_CONNECTION_STRING");
});
}
}
}

View File

@@ -1,6 +1,7 @@
<Solution> <Solution>
<Folder Name="/API/" > <Folder Name="/API/" >
<Project Path="API/API.Core/API.Core.csproj"/> <Project Path="API/API.Core/API.Core.csproj"/>
<Project Path="API/API.Specs/API.Specs.csproj"/>
</Folder> </Folder>
<Folder Name="/Database/"> <Folder Name="/Database/">
<Project Path="Database/Database.Core/Database.Core.csproj" /> <Project Path="Database/Database.Core/Database.Core.csproj" />