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:
Slendy 2023-07-27 17:30:42 -05:00
commit 1737a16f38
No known key found for this signature in database
GPG key ID: 7288D68361B91428
10 changed files with 93 additions and 23 deletions

View file

@ -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
(