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