public UpdateItemCommandHandler(
     ContentfulClientsFactory factory,
     ContentsConverter converter,
     ContentQueries query)
 {
     _factory   = factory ?? throw new ArgumentNullException(nameof(factory));
     _converter = converter ?? throw new ArgumentNullException(nameof(converter));
     _query     = query ?? throw new ArgumentNullException(nameof(query));
 }
Exemple #2
0
 public ContentsService(
     IMediator mediator,
     ContentQueries query,
     IProfiler profiler,
     ContentsConverter converter)
 {
     _mediator  = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _query     = query ?? throw new ArgumentNullException(nameof(query));
     _profiler  = profiler ?? throw new ArgumentNullException(nameof(profiler));
     _converter = converter ?? throw new ArgumentNullException(nameof(converter));
 }