aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/Helpers/TestDatabase.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-05 23:19:56 +0800
committercrupest <crupest@outlook.com>2020-01-05 23:19:56 +0800
commitff29d3f9d7b3a1478aefff0a18af7c37f746c40c (patch)
tree5c884cc6752341a4dde274f6fafd79ffcb4fb972 /Timeline.Tests/Helpers/TestDatabase.cs
parent41e33d570ac7181824b7cd3612010bb1962af540 (diff)
downloadtimeline-ff29d3f9d7b3a1478aefff0a18af7c37f746c40c.tar.gz
timeline-ff29d3f9d7b3a1478aefff0a18af7c37f746c40c.tar.bz2
timeline-ff29d3f9d7b3a1478aefff0a18af7c37f746c40c.zip
Use sqlite development database.
Diffstat (limited to 'Timeline.Tests/Helpers/TestDatabase.cs')
-rw-r--r--Timeline.Tests/Helpers/TestDatabase.cs4
1 files changed, 2 insertions, 2 deletions
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);
}