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