public void BuildChannelFactory_CreateChannelNullVia() { var ctx = new BindingContext(new CustomBinding(), empty_params); var cf = new HttpTransportBindingElement().BuildChannelFactory <IRequestChannel> (ctx); Assert.IsTrue(cf is ChannelFactoryBase <IRequestChannel>, "#1"); cf.Open(); cf.CreateChannel(new EndpointAddress("http://localhost:" + NetworkHelpers.FindFreePort()), null); }
public void BuildChannelFactory_CreateChannelNullVia () { var ctx = new BindingContext (new CustomBinding (), empty_params); var cf = new HttpTransportBindingElement ().BuildChannelFactory<IRequestChannel> (ctx); Assert.IsTrue (cf is ChannelFactoryBase<IRequestChannel>, "#1"); cf.Open (); cf.CreateChannel (new EndpointAddress ("http://localhost:8080"), null); }