Пример #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();
        }
Пример #2
0
 public void has_logout_negative()
 {
     FormsAuthenticationEndpointsRegistration.HasLogout(new BehaviorGraph())
     .ShouldBeFalse();
 }