Exemple #1
0
 public CreateOrderItemService(
     ApplicationDbContext context,
     ICreateOrderItemValidator orderItemValidator,
     IServiceRecipientService serviceRecipientService)
 {
     this.context                 = context ?? throw new ArgumentNullException(nameof(context));
     this.orderItemValidator      = orderItemValidator ?? throw new ArgumentNullException(nameof(orderItemValidator));
     this.serviceRecipientService = serviceRecipientService ?? throw new ArgumentNullException(nameof(serviceRecipientService));
 }
 public ServiceRecipientsSectionController(
     IServiceRecipientService serviceRecipientService)
 {
     this.serviceRecipientService = serviceRecipientService ?? throw new ArgumentNullException(nameof(serviceRecipientService));
 }