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); }
public MockAuthenticationService(MockClubPoolPrincipal principal) { MockPrincipal = principal; }