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