Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
        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");
        }