Example #1
0
        public void has_login_positive()
        {
            var graph = new BehaviorGraph();

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

            FormsAuthenticationEndpointsRegistration.HasLogin(graph)
            .ShouldBeTrue();
        }
Example #2
0
 public void has_login_negative()
 {
     FormsAuthenticationEndpointsRegistration.HasLogin(new BehaviorGraph())
     .ShouldBeFalse();
 }