コード例 #1
0
        public static AccountController GetAccountControllerForLoginTest(IAccountRelyingParty relyingParty)
        {
            var accountController = new AccountController(null, null, relyingParty, new TestSessionRegistry());
            accountController.InjectFakeContext();

            return accountController;
        }
コード例 #2
0
        public static AccountController GetAccountControllerForLoginTest(IAccountRelyingParty relyingParty)
        {
            var accountController = new AccountController(null, null, relyingParty, new TestSessionRegistry());

            accountController.InjectFakeContext();

            return(accountController);
        }
コード例 #3
0
 public AccountController(
     IMembershipService membershipService,
     IMemberRepository memberRepository,
     IAccountRelyingParty relyingParty,
     ISessionRegistry sessionRegistry) : base(sessionRegistry)
 {
     _membershipService = membershipService;
     _memberRepository  = memberRepository;
     _relyingParty      = relyingParty;
 }
コード例 #4
0
 public AccountController(
     IMembershipService membershipService,
     IMemberRepository memberRepository,
     IAccountRelyingParty relyingParty,
     ISessionRegistry sessionRegistry)
     : base(sessionRegistry)
 {
     _membershipService = membershipService;
     _memberRepository = memberRepository;
     _relyingParty = relyingParty;
 }