public void ShouldReturnTheController()
            {
                IControllerFactory factory = new StructureMapControllerFactory();
                factory.InitializeWithControllerTypes(typeof(StructureMapSimpleController), typeof(StructureMapDependencyController));
                IController controller = factory.CreateController(null, "StructureMapSimple");

                Assert.That(controller, Is.Not.Null);
                Assert.That(controller, Is.AssignableFrom(typeof(StructureMapSimpleController)));
            }
            public void ShouldReturnTheController()
            {
                var requestContext = new RequestContext(MvcMockHelpers.DynamicHttpContextBase(), new RouteData());

                IControllerFactory factory = new StructureMapControllerFactory();
                factory.InitializeWithControllerTypes(typeof(StructureMapSimpleController), typeof(StructureMapDependencyController));
                IController controller = factory.CreateController(requestContext, "StructureMapSimple");

                Assert.That(controller, Is.Not.Null);
                Assert.That(controller, Is.AssignableFrom(typeof(StructureMapSimpleController)));
            }