public AddUserCommand(User user, ResultInProgress resultInProgress, Repository repository)
 {
     _user             = user;
     _resultInProgress = resultInProgress;
     _repository       = repository;
 }
Esempio n. 2
0
 public void AddTo(Repository repository, ResultInProgress resultInProgress)
 {
     repository.SaveUser(_name, _surname);
     resultInProgress.SuccessfullyAdded(_name, _surname);
 }