Exemplo n.º 1
0
 public CreateTimeTableHandler(ITimeTableRepository timeTableRepository,
                               IMediator mediator,
                               ITimeTableDxos timeTableDxos)
 {
     _timeTableRepository = timeTableRepository ?? throw new ArgumentNullException(nameof(timeTableRepository));
     _mediator            = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _timeTableDxos       = timeTableDxos ?? throw new ArgumentNullException(nameof(timeTableDxos));
 }
Exemplo n.º 2
0
 public GetTimeTableHandler(ITimeTableRepository timeTableRepository, ITimeTableDxos timeTableDxos, ILogger <GetTimeTableHandler> logger)
 {
     _timeTableRepository = timeTableRepository ?? throw new ArgumentNullException(nameof(timeTableRepository));
     _timeTableDxos       = timeTableDxos ?? throw new ArgumentNullException(nameof(timeTableDxos));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }