using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.TestHost;
using System;
using System.Collections.Generic;
using System.Text;
using ConfigureStudy.WebApp;
namespace WebApiStudy.IntegrationTest
{
public class TestServerFixture : IDisposable
{
public TestServer TestServer;
///
/// 设置测试内存服务器 TestServer
///
public TestServerFixture()
{
TestServer = new TestServer(new WebHostBuilder().UseStartup());
}
public void Dispose()
{
TestServer = null;
}
}
}