aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/Helpers/MyWebApplicationFactory.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-08 17:41:59 +0800
committer杨宇千 <crupest@outlook.com>2019-08-08 17:41:59 +0800
commit6c50630c4d6576446fc2338714feaefbf28c4ed1 (patch)
tree99f13fac6846a3eb299bbdfa4ff6b193e4873019 /Timeline.Tests/Helpers/MyWebApplicationFactory.cs
parentaa7d7d8ce33646dc63afb0c084e7daa14916646a (diff)
downloadtimeline-6c50630c4d6576446fc2338714feaefbf28c4ed1.tar.gz
timeline-6c50630c4d6576446fc2338714feaefbf28c4ed1.tar.bz2
timeline-6c50630c4d6576446fc2338714feaefbf28c4ed1.zip
Reorganize unit tests.
Diffstat (limited to 'Timeline.Tests/Helpers/MyWebApplicationFactory.cs')
-rw-r--r--Timeline.Tests/Helpers/MyWebApplicationFactory.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Timeline.Tests/Helpers/MyWebApplicationFactory.cs b/Timeline.Tests/Helpers/MyWebApplicationFactory.cs
index d8da7168..b49756e4 100644
--- a/Timeline.Tests/Helpers/MyWebApplicationFactory.cs
+++ b/Timeline.Tests/Helpers/MyWebApplicationFactory.cs
@@ -7,6 +7,8 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Timeline.Entities;
using Timeline.Services;
+using Timeline.Tests.Mock.Data;
+using Timeline.Tests.Mock.Services;
using Xunit.Abstractions;
namespace Timeline.Tests.Helpers
@@ -34,7 +36,7 @@ namespace Timeline.Tests.Helpers
using (var context = new DatabaseContext(options))
{
context.Database.EnsureCreated();
- context.Users.AddRange(TestMockUsers.MockUsers);
+ context.Users.AddRange(MockUsers.Users);
context.SaveChanges();
}
}