aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests
diff options
context:
space:
mode:
Diffstat (limited to 'Timeline.Tests')
-rw-r--r--Timeline.Tests/Helpers/TestApplication.cs2
-rw-r--r--Timeline.Tests/Helpers/TestDatabase.cs4
-rw-r--r--Timeline.Tests/Properties/launchSettings.json27
3 files changed, 4 insertions, 29 deletions
diff --git a/Timeline.Tests/Helpers/TestApplication.cs b/Timeline.Tests/Helpers/TestApplication.cs
index a624da6b..d18f2848 100644
--- a/Timeline.Tests/Helpers/TestApplication.cs
+++ b/Timeline.Tests/Helpers/TestApplication.cs
@@ -18,7 +18,7 @@ namespace Timeline.Tests.Helpers
builder.ConfigureServices(services =>
{
services.AddEntityFrameworkSqlite();
- services.AddDbContext<DatabaseContext>(options =>
+ services.AddDbContext<DatabaseContext, DevelopmentDatabaseContext>(options =>
{
options.UseSqlite(Database.Connection);
});
diff --git a/Timeline.Tests/Helpers/TestDatabase.cs b/Timeline.Tests/Helpers/TestDatabase.cs
index 10224c27..9560f353 100644
--- a/Timeline.Tests/Helpers/TestDatabase.cs
+++ b/Timeline.Tests/Helpers/TestDatabase.cs
@@ -47,11 +47,11 @@ namespace Timeline.Tests.Helpers
Connection = new SqliteConnection("Data Source=:memory:;");
Connection.Open();
- var options = new DbContextOptionsBuilder<DatabaseContext>()
+ var options = new DbContextOptionsBuilder<DevelopmentDatabaseContext>()
.UseSqlite(Connection)
.Options;
- Context = new DatabaseContext(options);
+ Context = new DevelopmentDatabaseContext(options);
InitDatabase(Context);
}
diff --git a/Timeline.Tests/Properties/launchSettings.json b/Timeline.Tests/Properties/launchSettings.json
index 7a94d57a..f3ee419d 100644
--- a/Timeline.Tests/Properties/launchSettings.json
+++ b/Timeline.Tests/Properties/launchSettings.json
@@ -1,27 +1,2 @@
{
- "iisSettings": {
- "windowsAuthentication": false,
- "anonymousAuthentication": true,
- "iisExpress": {
- "applicationUrl": "http://localhost:52040/",
- "sslPort": 0
- }
- },
- "profiles": {
- "IIS Express": {
- "commandName": "IISExpress",
- "launchBrowser": true,
- "environmentVariables": {
- "ASPNETCORE_ENVIRONMENT": "Development"
- }
- },
- "Timeline.Tests": {
- "commandName": "Project",
- "launchBrowser": true,
- "environmentVariables": {
- "ASPNETCORE_ENVIRONMENT": "Development"
- },
- "applicationUrl": "http://localhost:52041/"
- }
- }
-} \ No newline at end of file
+}