You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
621 B
27 lines
621 B
using Microsoft.AspNetCore.Mvc.Testing;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using System.Net.Http;
|
|
|
|
namespace PublicApiIntegrationTests
|
|
{
|
|
[TestClass]
|
|
public class ProgramTest
|
|
{
|
|
private static WebApplicationFactory<Program> _application;
|
|
|
|
public static HttpClient NewClient
|
|
{
|
|
get
|
|
{
|
|
return _application.CreateClient();
|
|
}
|
|
}
|
|
|
|
[AssemblyInitialize]
|
|
public static void AssemblyInitialize(TestContext _)
|
|
{
|
|
_application = new WebApplicationFactory<Program>();
|
|
|
|
}
|
|
}
|
|
}
|
|
|