From 6c50630c4d6576446fc2338714feaefbf28c4ed1 Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Thu, 8 Aug 2019 17:41:59 +0800 Subject: Reorganize unit tests. --- Timeline.Tests/Helpers/MyWebApplicationFactory.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Timeline.Tests/Helpers/MyWebApplicationFactory.cs') 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(); } } -- cgit v1.2.3