Ejemplo n.º 1
0
 public ModelController(
     IMakeServicesAsync makeService,
     IModelServicesAsync modelService,
     IFilteringFactory filteringFactory,
     ISortingFactory sortingFactory,
     IPagingFactory pagingFactory,
     IOptionsFactory optionsFactory)
 {
     _makeService      = makeService ?? throw new ArgumentNullException(nameof(IMakeServicesAsync));
     _modelService     = modelService ?? throw new ArgumentNullException(nameof(IModelServicesAsync));
     _filteringFactory = filteringFactory ?? throw new ArgumentNullException(nameof(IFilteringFactory));
     _sortingFactory   = sortingFactory ?? throw new ArgumentNullException(nameof(ISortingFactory));
     _pagingFactory    = pagingFactory ?? throw new ArgumentNullException(nameof(IPagingFactory));
     _optionsFactory   = optionsFactory ?? throw new ArgumentNullException(nameof(IOptionsFactory));
 }
Ejemplo n.º 2
0
 public MakeController(
     IMakeServicesAsync makeService,
     IModelServicesAsync modelService,
     IFilteringFactory filteringFactory,
     ISortingFactory sortingFactory,
     IPagingFactory pagingFactory,
     IVehicleMake vehicleMake)
 {
     _makeService      = makeService ?? throw new ArgumentNullException(nameof(IMakeServicesAsync));
     _modelService     = modelService ?? throw new ArgumentNullException(nameof(IModelServicesAsync));
     _filteringFactory = filteringFactory ?? throw new ArgumentNullException(nameof(IFilteringFactory));
     _sortingFactory   = sortingFactory ?? throw new ArgumentNullException(nameof(ISortingFactory));
     _pagingFactory    = pagingFactory ?? throw new ArgumentNullException(nameof(IPagingFactory));
     _vehicleMake      = vehicleMake ?? throw new ArgumentNullException(nameof(IVehicleMake));
 }