public UserService(IPasswordHasher passwordHasher, IUserRepository userRepository, IGuidFactory guidFactory, IUserEntityFactory userEntityFactory) { this.passwordHasher = passwordHasher; this.userRepository = userRepository; this.guidFactory = guidFactory; this.userEntityFactory = userEntityFactory; }
public override void SetUp() { base.SetUp(); passwordHasher = NewMock <IPasswordHasher>(); userRepository = NewMock <IUserRepository>(); guidFactory = NewMock <IGuidFactory>(); userEntityFactory = NewMock <IUserEntityFactory>(); userService = new UserService(passwordHasher, userRepository, guidFactory, userEntityFactory); }