public QueryTestFixture() { TestServer = TestServerFactory.Create(); Context = TestServer.Host.Services.GetService <EBookStoreDbContext>(); EBookStoreContextFactory.Create(Context); Client = TestServer.CreateClient(); }
public void Dispose() { Client.Dispose(); TestServerFactory.Destroy(TestServer); EBookStoreContextFactory.Destroy(Context); }