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