25 lines
579 B
C#
25 lines
579 B
C#
|
using System.Net.Http;
|
|||
|
using Xunit;
|
|||
|
|
|||
|
namespace Bootstrap.Admin
|
|||
|
{
|
|||
|
[Collection("SQLServerContext")]
|
|||
|
public class ControllerTest
|
|||
|
{
|
|||
|
protected HttpClient Client { get; set; }
|
|||
|
|
|||
|
protected BAWebHost Host { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
///
|
|||
|
/// </summary>
|
|||
|
/// <param name="factory"></param>
|
|||
|
/// <param name="baseAddress"></param>
|
|||
|
public ControllerTest(BAWebHost factory, string baseAddress = "api")
|
|||
|
{
|
|||
|
Host = factory;
|
|||
|
Client = factory.CreateClient(baseAddress);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|