27 lines
559 B
C#
27 lines
559 B
C#
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 = new();
|
|
|
|
public static HttpClient NewClient
|
|
{
|
|
get
|
|
{
|
|
return _application.CreateClient();
|
|
}
|
|
}
|
|
|
|
[AssemblyInitialize]
|
|
public static void AssemblyInitialize(TestContext _)
|
|
{
|
|
_application = new WebApplicationFactory<Program>();
|
|
|
|
}
|
|
}
|