aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/Helpers
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-19 15:43:47 +0800
committer杨宇千 <crupest@outlook.com>2019-08-19 15:43:47 +0800
commitf72a8d7f3415b510231a6ec60e020b1dde358059 (patch)
treefeaaef135731687eb16cd40556842cc8606cdaab /Timeline.Tests/Helpers
parent3371b473d0d055f46c9ea09fba7e0d56e7a386a5 (diff)
downloadtimeline-f72a8d7f3415b510231a6ec60e020b1dde358059.tar.gz
timeline-f72a8d7f3415b510231a6ec60e020b1dde358059.tar.bz2
timeline-f72a8d7f3415b510231a6ec60e020b1dde358059.zip
Add avatar 304.
Diffstat (limited to 'Timeline.Tests/Helpers')
-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);
};
}