aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-05-15 22:31:59 +0800
committercrupest <crupest@outlook.com>2021-05-15 22:31:59 +0800
commitd832591db5ddc594a97cc8a75739e0868094e3ec (patch)
tree97cb22dd8e60a0372d6abcb7992dc18caa0d1604 /BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
parent8f88c6c995b340a64086aedd27d312d5732d3e7d (diff)
downloadtimeline-d832591db5ddc594a97cc8a75739e0868094e3ec.tar.gz
timeline-d832591db5ddc594a97cc8a75739e0868094e3ec.tar.bz2
timeline-d832591db5ddc594a97cc8a75739e0868094e3ec.zip
test: Use xunit logging output.
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs')
-rw-r--r--BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs b/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
index 259ebfa1..68d52b19 100644
--- a/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
+++ b/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
@@ -8,6 +8,7 @@ using Timeline.Models.Http;
using Timeline.Services.User;
using Timeline.Tests.Helpers;
using Xunit;
+using Xunit.Abstractions;
namespace Timeline.Tests.IntegratedTests
{
@@ -17,19 +18,19 @@ namespace Timeline.Tests.IntegratedTests
protected int TestUserCount { get; }
- public IntegratedTestBase() : this(1)
+ public IntegratedTestBase(ITestOutputHelper testOutputHelper) : this(1, testOutputHelper)
{
}
- public IntegratedTestBase(int userCount)
+ public IntegratedTestBase(int userCount, ITestOutputHelper testOutputHelper)
{
if (userCount < 0)
throw new ArgumentOutOfRangeException(nameof(userCount), userCount, "User count can't be negative.");
TestUserCount = userCount;
- TestApp = new TestApplication();
+ TestApp = new TestApplication(testOutputHelper);
}
protected virtual Task OnInitializeAsync()