public void SetUpTest() { _mockSiteMap = new MockSiteMap(); _session = new Mock<ISession>(); _createdAccount = new Account(new AccountId(Guid.NewGuid()), _username, new AccountRoles()); _authService = new Mock<IUserAuthenticationService>(); }
public RouteValueDictionary GetLandingPage(Account account) { if (account.IsInRole(ApplicationRoles.Member)) { return ExpressionHelper.GetRouteValuesFromExpression<MemberController>(c => c.Dashboard()); } else { return PublicLandingPage; } }
public RouteValueDictionary GetLandingPage(Account account) { return new PageRoute("Landing"); }
public static LoginAttemptResult Success(Account account) { return new LoginAttemptResult {Account = account, Succeeded = true}; }