Exemplo n.º 1
0
 public CreatePersonCommandHandler(IMapper mapper, IAsyncRepository <Person> personRepository,
                                   ILogger <CreatePersonCommandHandler> logger, ICachedPersonsService cachedPersonsService)
 {
     _mapper               = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _personRepository     = personRepository ?? throw new ArgumentNullException(nameof(personRepository));
     _logger               = logger ?? throw new ArgumentNullException(nameof(logger));
     _cachedPersonsService = cachedPersonsService ?? throw new ArgumentNullException(nameof(cachedPersonsService));
 }