Ejemplo n.º 1
0
 public void TearDown()
 {
     Server?.Dispose();
     Server = null;
     AvailiblityServiceMock?.Dispose();
     AvailiblityServiceMock = null;
 }
Ejemplo n.º 2
0
 public void SetupTestServer()
 {
     Server?.Dispose();
     Server = new TestServer(new WebHostBuilder().UseContentRoot(Directory.GetCurrentDirectory())
                             .UseStartup <TestStartup>());
     AvailiblityServiceMock?.Dispose();
     AvailiblityServiceMock = new AvailiblityServiceMock();
 }