Esempio n. 1
0
        public void WhenSetOperationHandlerFactoryIsCalledWithAnInstanceThenOperationHandlerFactoryIsSet()
        {
            var builder = HttpHostConfiguration.Create();
            var factory = new TestOperationHandlerFactory();

            builder.SetOperationHandlerFactory(factory);
            Assert.AreEqual(factory, builder.ToConfiguration().OperationHandlerFactory);
        }
 public void WhenSetOperationHandlerFactoryIsCalledWithAnInstanceThenOperationHandlerFactoryIsSet()
 {
     var builder = HttpHostConfiguration.Create();
     var factory = new TestOperationHandlerFactory();
     builder.SetOperationHandlerFactory(factory);
     Assert.AreEqual(factory, builder.ToConfiguration().OperationHandlerFactory);
 }