示例#1
0
 public static MockAuthenticationService CreateMockAuthenticationService()
 {
     var user = new User("user", "user", "user", "name", "*****@*****.**");
       var identity = new MockIdentity(user.Username, true, null);
       var principal = new MockClubPoolPrincipal(user, identity);
       return new MockAuthenticationService(principal);
 }
示例#2
0
 public MockAuthenticationService(MockClubPoolPrincipal principal)
 {
     MockPrincipal = principal;
 }