public void Host_Creation_Test() { TestServerPrepair testhost = new TestServerPrepair(); ServiceHost host = testhost.HostCreate(serviceType, implementedcontract, binding, uriAddress); Assert.AreEqual("Created", host.State.ToString(), "The host didn't create"); }
public void Open_Host_Test() { TestServerPrepair testhost = new TestServerPrepair(); ServiceHost host = testhost.HostCreate(serviceType, implementedcontract, binding, uriAddress); host.Open(); Assert.AreEqual("Opened", host.State.ToString(), "The host isn't opened"); }