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 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); }