Esempio n. 1
0
        public void can_happily_plug_in_an_alternative_route_policy()
        {
            FakeRoutePolicy.IWasCalled = false;

            var registry = new FubuRegistry();

            registry.RoutePolicy <FakeRoutePolicy>();

            using (var runtime = FubuApplication.For(registry).StructureMap().Bootstrap())
            {
            }

            FakeRoutePolicy.IWasCalled.ShouldBeTrue();
        }
        public void can_happily_plug_in_an_alternative_route_policy()
        {
            FakeRoutePolicy.IWasCalled = false;

            var registry = new FubuRegistry();

            registry.RoutePolicy <FakeRoutePolicy>();

            using (var runtime = registry.ToRuntime())
            {
            }

            FakeRoutePolicy.IWasCalled.ShouldBeTrue();
        }