Fix CI build workflow, index casing, and test assertions
All checks were successful
Build / build (pull_request) Successful in 2m16s
All checks were successful
Build / build (pull_request) Successful in 2m16s
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using SlipItIn.Server.Controllers;
|
||||
using SlipItIn.Server.Data;
|
||||
using SlipItIn.Shared.DTOs;
|
||||
@@ -26,7 +27,15 @@ public class AuthControllerTests
|
||||
["Jwt:ExpirationMinutes"] = "60"
|
||||
})
|
||||
.Build();
|
||||
_sut = new AuthController(_factory, config);
|
||||
_sut = new AuthController(_factory, config, new TestHostEnvironment());
|
||||
}
|
||||
|
||||
private sealed class TestHostEnvironment : IHostEnvironment
|
||||
{
|
||||
public string EnvironmentName { get; set; } = Environments.Development;
|
||||
public string ApplicationName { get; set; } = "SlipItIn.Server.Tests";
|
||||
public string ContentRootPath { get; set; } = AppContext.BaseDirectory;
|
||||
public Microsoft.Extensions.FileProviders.IFileProvider ContentRootFileProvider { get; set; } = null!;
|
||||
}
|
||||
|
||||
// ---------- Register ----------
|
||||
|
||||
Reference in New Issue
Block a user