protected void SetupSubject()
        {
            MockUpdatableAuth = new Mock<IUpdatable<UserAuthentication>>();

            _passwords = new Passwords();
            _translateUserUserAuth = new DataUserToAccountUserTranslator();

            _userAuthProvider = new UserAuthenticationProvider(
                _translateUserUserAuth
                , MockRetrievableUserByEmail.Object
                , MockRetrievableAuthyId.Object
                , MockUpdatableAuth.Object
                , MockCreatableAuth.Object
                , _passwords
                , MockDeletableAuth.Object);

            Subject = new UserAccountProvider(
                _userAuthProvider
                , MockCreateableUser.Object
                , MockRetrievableUserById.Object
                , MockRetrievableUserByEmail.Object
                , MockDeletableUser.Object
                , MockUpdateableUser.Object
                , _translateUserUserAuth
                , MockSystemTime.Object);
        }
 public SignInController(IPasswords passwords, ISessions sessions,
                         IVendorInfos vendorInfos, ISessionSource sessionSource)
 {
     _passwords     = passwords;
     _sessions      = sessions;
     _vendorInfos   = vendorInfos;
     _sessionSource = sessionSource;
 }
 public UserAuthenticationProvider(
     ITranslate<User, UserAccount> translateDataUserToUserAccount, 
     IRetrievable<ByUserEmail, User> retrieveUserByEmail, 
     IBulkRetrievable<ByEncodedUserId, UserAuthentication> retrieveAllUserAuthenticationByEncodedUserId, 
     IUpdatable<UserAuthentication> userAuthUpdater, 
     ICreatable<UserAuthentication> userAuthCreator, 
     IPasswords passwords, 
     IDeletable<UserAuthentication> userAuthDeleter)
 {
     _translateDataUserToUserAccount = translateDataUserToUserAccount;
     _retrieveUserByEmail = retrieveUserByEmail;
     _retrieveAllUserAuthenticationByEncodedUserId = retrieveAllUserAuthenticationByEncodedUserId;
     _userAuthUpdater = userAuthUpdater;
     _userAuthCreator = userAuthCreator;
     _passwords = passwords;
     _userAuthDeleter = userAuthDeleter;
 }
        public void InitializeProvider()
        {
            _passwords = new Passwords();
            _translateUserUserAuth = new DataUserToAccountUserTranslator();

            _userAuthProvider = new UserAuthenticationProvider(
                _translateUserUserAuth
                , _mockRetrievableUserByEmail.Object
                , _mockRetrievableAuthyId.Object
                , _mockUpdatableAuth.Object
                , _mockCreatableAuth.Object
                , _passwords
                , _mockDeletableAuth.Object);

            _subject = new UserAccountProvider(
                _userAuthProvider
                , _mockCreateableUser.Object
                , _mockRetrievableUserById.Object
                , _mockRetrievableUserByEmail.Object
                , _mockDeletableUser.Object
                , _mockUpdateableUser.Object
                , _translateUserUserAuth
                , _mockSystemTime.Object);
        }