Example #1
0
        public void Setup()
        {
            _inintializer = new OAuthInintializer();
            FakeUnitOfWorkFactory      unitOfWorkFactory         = new FakeUnitOfWorkFactory();
            IUserRepository            userRepository            = new FakeUserRepository(unitOfWorkFactory);
            IOAuthMembershipRepository oAuthMembershipRepository = new FakeOAuthMembershipRepository(unitOfWorkFactory);

            _oAuthService = new OAuthService(unitOfWorkFactory, userRepository, oAuthMembershipRepository);
        }
Example #2
0
 public Authentication(
     IAuthenticationService authenticationService,
     IOAuthService oAuthService,
     IAccountLogic accountLogic,
     IOAuthInintializer oAuthInintializer,
     IRoleProvider roleProvider,
     IUserRegistrationService userRegistrationService)
 {
     _authenticationService   = authenticationService;
     _oAuthService            = oAuthService;
     _accountLogic            = accountLogic;
     _oAuthInintializer       = oAuthInintializer;
     _roleProvider            = roleProvider;
     _userRegistrationService = userRegistrationService;
 }