Beispiel #1
0
        public void adding_a_route_alias_adds_a_RouteAliasAdded_event()
        {
            var chain = new BehaviorChain();
            var alias = new RouteDefinition("something/else");

            chain.AddRouteAlias(alias);

            chain.As <ITracedModel>().StagedEvents.Last().ShouldEqual(new RouteAliasAdded(alias));
        }
Beispiel #2
0
        public void add_a_route_alias()
        {
            var chain = new BehaviorChain();
            var alias = new RouteDefinition("something/else");

            chain.AddRouteAlias(alias);

            chain.AdditionalRoutes.ShouldHaveTheSameElementsAs(alias);
        }
        public void add_a_route_alias()
        {
            var chain = new BehaviorChain();
            var alias = new RouteDefinition("something/else");

            chain.AddRouteAlias(alias);

            chain.AdditionalRoutes.ShouldHaveTheSameElementsAs(alias);
        }
        public void adding_a_route_alias_adds_a_RouteAliasAdded_event()
        {
            var chain = new BehaviorChain();
            var alias = new RouteDefinition("something/else");

            chain.AddRouteAlias(alias);

            chain.As<ITracedModel>().StagedEvents.Last().ShouldEqual(new RouteAliasAdded(alias));
        }