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