Пример #1
0
 public void WithCustomer(Guid customerId)
 {
     ViewModel = _readRepository.GetById <CustomerAddressDto>(Dto.GetDtoIdOf <CustomerAddressDto>(customerId));
     Command   = new ValidatingCommand <RelocatingCustomerCommand>(new RelocatingCustomerCommand(ViewModel.AggregateRootId), Validator);
 }
 public void WithCustomer(Guid customerId)
 {
     ViewModel = _readRepository.GetById <CustomerAddressDto>(Dto.GetDtoIdOf <CustomerAddressDto>(customerId));
     Command   = new ValidatingCommand <RelocateTheCustomer>(new RelocateTheCustomer(ViewModel.AggregateRootId, ViewModel.Street, ViewModel.StreetNumber, ViewModel.PostalCode, ViewModel.City),
                                                             Validator);
 }