diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-19 16:12:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-19 16:12:16 +0800 |
commit | 72ab8e49929d528b7cb461ba90ad86691a3f437b (patch) | |
tree | bd8c0d70aac7cd4d1a6c28ae7c9b7c681dbd5613 /Timeline.Tests/Helpers/MyWebApplicationFactory.cs | |
parent | 3371b473d0d055f46c9ea09fba7e0d56e7a386a5 (diff) | |
parent | 9168f07d1f35b5ba670b3c1d900f186ac868284b (diff) | |
download | timeline-72ab8e49929d528b7cb461ba90ad86691a3f437b.tar.gz timeline-72ab8e49929d528b7cb461ba90ad86691a3f437b.tar.bz2 timeline-72ab8e49929d528b7cb461ba90ad86691a3f437b.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.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);
};
}
|