コード例 #1
0
        public void Handle(UpdateClientAddressCommand command)
        {
            Client client = _clientRepository.GetEntity(command.ClientId);

            client = client.UpdateAddress(command.Adresse);

            _clientRepository.SaveAggregateEvents(client);
        }
コード例 #2
0
        public void UpdateClientAddress(UpdateClientAddressCommand command)
        {
            var handler = new UpdateClientAddressCommandHandler(new ClientRepository());

            handler.Handle(command);
        }