fix: resolve test failures from timezone conversion and interface rename
- Fix CriteriaSheetGenerator.FormatTimestamp to handle all DateTimeKind values - Update TestWebApplicationFactory to use IAuthenticationService - Add logger parameter to ExcelParserServiceTests - Add SecureStoreManager to solution under /utils/ folder
This commit is contained in:
@@ -53,12 +53,12 @@ public class TestWebApplicationFactory : WebApplicationFactory<Program>
|
||||
|
||||
// Ensure fake auth is used for tests
|
||||
var authServiceDescriptor = services.SingleOrDefault(
|
||||
d => d.ServiceType == typeof(IAuthService));
|
||||
d => d.ServiceType == typeof(IAuthenticationService));
|
||||
if (authServiceDescriptor != null)
|
||||
{
|
||||
services.Remove(authServiceDescriptor);
|
||||
}
|
||||
services.AddSingleton<IAuthService, FakeAuthService>();
|
||||
services.AddSingleton<IAuthenticationService, FakeAuthService>();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user