aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/TokenUnitTest.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-04 21:30:53 +0800
committer杨宇千 <crupest@outlook.com>2019-08-04 21:30:53 +0800
commitd1ebb882e8484c80eca86cac80602fb4c1401834 (patch)
treed1c9c7b51353b67b47bb4cd89aa82754ef0a1234 /Timeline.Tests/TokenUnitTest.cs
parent1f56e4857892150e1109a93fadc487f92d955eed (diff)
downloadtimeline-d1ebb882e8484c80eca86cac80602fb4c1401834.tar.gz
timeline-d1ebb882e8484c80eca86cac80602fb4c1401834.tar.bz2
timeline-d1ebb882e8484c80eca86cac80602fb4c1401834.zip
Fix the database bug in unit tests.
Diffstat (limited to 'Timeline.Tests/TokenUnitTest.cs')
-rw-r--r--Timeline.Tests/TokenUnitTest.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/Timeline.Tests/TokenUnitTest.cs b/Timeline.Tests/TokenUnitTest.cs
index 1fe3cff6..7b83cd13 100644
--- a/Timeline.Tests/TokenUnitTest.cs
+++ b/Timeline.Tests/TokenUnitTest.cs
@@ -6,9 +6,7 @@ using System.Linq;
using System.Net;
using System.Net.Http;
using Timeline.Controllers;
-using Timeline.Entities;
using Timeline.Entities.Http;
-using Timeline.Models;
using Timeline.Services;
using Timeline.Tests.Helpers;
using Timeline.Tests.Helpers.Authentication;
@@ -17,16 +15,16 @@ using Xunit.Abstractions;
namespace Timeline.Tests
{
- public class TokenUnitTest : IClassFixture<WebApplicationFactory<Startup>>
+ public class TokenUnitTest : IClassFixture<MyWebApplicationFactory<Startup>>
{
private const string CreateTokenUrl = "token/create";
private const string VerifyTokenUrl = "token/verify";
private readonly WebApplicationFactory<Startup> _factory;
- public TokenUnitTest(WebApplicationFactory<Startup> factory, ITestOutputHelper outputHelper)
+ public TokenUnitTest(MyWebApplicationFactory<Startup> factory, ITestOutputHelper outputHelper)
{
- _factory = factory.WithTestConfig(outputHelper);
+ _factory = factory.WithTestLogging(outputHelper);
}
[Fact]