mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-10-04 07:09:58 +00:00
Use SQLite in-memory in lieu of EF In-Memory for testing
Also replaces usages of DateTime.Now with DateTime.UtcNow for internal time storage
This commit is contained in:
parent
23cb1bef1c
commit
1737a16f38
10 changed files with 93 additions and 23 deletions
|
@ -28,11 +28,7 @@ public class ApiStartup
|
|||
}
|
||||
);
|
||||
|
||||
services.AddDbContext<DatabaseContext>(builder =>
|
||||
{
|
||||
builder.UseMySql(ServerConfiguration.Instance.DbConnectionString,
|
||||
MySqlServerVersion.LatestSupportedServerVersion);
|
||||
});
|
||||
services.AddDbContext<DatabaseContext>(DatabaseContext.ConfigureBuilder());
|
||||
|
||||
services.AddSwaggerGen
|
||||
(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue