Exemplo n.º 1
0
        public void has_logout_positive()
        {
            var graph = new BehaviorGraph();

            graph.AddChain().AddToEnd(ActionCall.For <LoginEndpoint>(x => x.get_logout(null)));

            FormsAuthenticationEndpointsRegistration.HasLogout(graph)
            .ShouldBeTrue();
        }
Exemplo n.º 2
0
 public void has_logout_negative()
 {
     FormsAuthenticationEndpointsRegistration.HasLogout(new BehaviorGraph())
     .ShouldBeFalse();
 }