Example #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);
 }
Example #2
0
 public MockClubPoolPrincipal(User user, MockIdentity identity)
     : base(user, identity)
 {
     MockIdentity = identity;
       User = user;
 }