diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-19 15:43:47 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-19 15:43:47 +0800 |
commit | 5b2464a8113fa4a68c8749b3553a5924d2131d9f (patch) | |
tree | feaaef135731687eb16cd40556842cc8606cdaab /Timeline.Tests/Helpers | |
parent | 24fe6340ea69321ecafb57c8c5d6cd4b72f229b4 (diff) | |
download | timeline-5b2464a8113fa4a68c8749b3553a5924d2131d9f.tar.gz timeline-5b2464a8113fa4a68c8749b3553a5924d2131d9f.tar.bz2 timeline-5b2464a8113fa4a68c8749b3553a5924d2131d9f.zip |
Add avatar 304.
Diffstat (limited to 'Timeline.Tests/Helpers')
-rw-r--r-- | Timeline.Tests/Helpers/MyWebApplicationFactory.cs | 4 |
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);
};
}
|