Beispiel #1
0
        public void BuildChannelFactory_Throws()
        {
            HttpMessageHandlerBindingElement bindingElement = new HttpMessageHandlerBindingElement();

            ExceptionAssert.Throws <NotSupportedException>(
                SR.HttpMessageHandlerChannelFactoryNotSupported(typeof(HttpMessageHandlerBindingElement).Name, typeof(IChannelFactory <IReplyChannel>).Name),
                () =>
            {
                bindingElement.BuildChannelFactory <IReplyChannel>(MockBindingContext.Create());
            });
        }
        public void HttpMessagePluginBindingElement_Method3()
        {
            var be = new HttpMessageHandlerBindingElement();

            be.BuildChannelFactory <IReplyChannel>(null);
        }