public void CanCreateServiceHostAndOpenHost() { WindsorContainer windsorContainer = new WindsorContainer(); windsorContainer.AddComponent("operations", typeof (IOperations), typeof (Operations)); Uri uri = new Uri("net.tcp://localhost/WCF.Facility"); WindsorServiceHost host = new WindsorServiceHost(windsorContainer.Kernel, typeof (Operations), uri); host.Description.Endpoints.Add( new ServiceEndpoint(ContractDescription.GetContract(typeof (IOperations)), new NetTcpBinding(), new EndpointAddress(uri))); host.Open(); host.Close(); }
public void CanCreateServiceHost() { WindsorServiceHost host = new WindsorServiceHost(new WindsorContainer().Kernel, typeof (Operations)); Assert.IsNotNull(host); }