public EditRoasterRequestModel(IRoasterRequestService roasterRequestService)
 => _roasterRequestService = roasterRequestService ?? throw new ArgumentNullException(nameof(IRoasterRequestService));
示例#2
0
 public RoastersController(IRoasterService roasterService,
                           IRoasterRequestService roasterRequestService)
 {
     _roasterService        = roasterService ?? throw new ArgumentNullException(nameof(IRoasterService));
     _roasterRequestService = roasterRequestService ?? throw new ArgumentNullException(nameof(IRoasterRequestService));
 }