aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/Helpers/MyWebApplicationFactory.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-19 16:12:16 +0800
committerGitHub <noreply@github.com>2019-08-19 16:12:16 +0800
commit134173eda92de04961dc69757b257c1c547d88a4 (patch)
treebd8c0d70aac7cd4d1a6c28ae7c9b7c681dbd5613 /Timeline.Tests/Helpers/MyWebApplicationFactory.cs
parent24fe6340ea69321ecafb57c8c5d6cd4b72f229b4 (diff)
parent79e578e97ed252bff0dca3c89d81a395b35289d7 (diff)
downloadtimeline-134173eda92de04961dc69757b257c1c547d88a4.tar.gz
timeline-134173eda92de04961dc69757b257c1c547d88a4.tar.bz2
timeline-134173eda92de04961dc69757b257c1c547d88a4.zip
Merge pull request #45 from crupest/avatar-cache
Add 304 response for If-Modified-Since in avatar.
Diffstat (limited to 'Timeline.Tests/Helpers/MyWebApplicationFactory.cs')
-rw-r--r--Timeline.Tests/Helpers/MyWebApplicationFactory.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Timeline.Tests/Helpers/MyWebApplicationFactory.cs b/Timeline.Tests/Helpers/MyWebApplicationFactory.cs
index e96d11fe..1a9fe01e 100644
--- a/Timeline.Tests/Helpers/MyWebApplicationFactory.cs
+++ b/Timeline.Tests/Helpers/MyWebApplicationFactory.cs
@@ -46,9 +46,7 @@ namespace Timeline.Tests.Helpers
using (var context = new DatabaseContext(options))
{
- context.Database.EnsureCreated();
- context.Users.AddRange(MockUsers.Users);
- context.SaveChanges();
+ TestDatabase.InitDatabase(context);
};
}