mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.Tests.Logging;
|
|
using Xunit.Abstractions;
|
|
|
|
namespace BTCPayServer.Tests
|
|
{
|
|
public class UnitTestBase
|
|
{
|
|
public UnitTestBase(ITestOutputHelper helper)
|
|
{
|
|
TestLogs = new XUnitLog(helper) { Name = "Tests" };
|
|
TestLogProvider = new XUnitLogProvider(helper);
|
|
}
|
|
public ILog TestLogs
|
|
{
|
|
get;
|
|
}
|
|
public XUnitLogProvider TestLogProvider
|
|
{
|
|
get;
|
|
}
|
|
|
|
public ServerTester CreateServerTester([CallerMemberNameAttribute] string scope = null, bool newDb = false)
|
|
{
|
|
return new ServerTester(scope, newDb);
|
|
}
|
|
public SeleniumTester CreateSeleniumTester([CallerMemberNameAttribute] string scope = null, bool newDb = false)
|
|
{
|
|
return new SeleniumTester() { Server = new ServerTester(scope, newDb) };
|
|
}
|
|
}
|
|
}
|