public void WhenSetInstanceFactoryIsCalledWithAnInstanceThenInstanceFactoryIsSet() { var builder = HttpHostConfiguration.Create(); var instanceFactory = new TestInstanceFactory(); builder.SetResourceFactory(instanceFactory); Assert.AreEqual(instanceFactory, builder.ToConfiguration().InstanceFactory); }