Ejemplo n.º 1
0
 public CitiesController(
     ICityService cityService,
     IBarService barService,
     ICityDTOMapper cityMapper,
     IBarDTOMapper barMapper,
     IToastNotification toaster)
 {
     this.cityService = cityService ?? throw new ArgumentNullException(nameof(cityService));
     this.barService  = barService ?? throw new ArgumentNullException(nameof(barService));
     this.cityMapper  = cityMapper ?? throw new ArgumentNullException(nameof(cityMapper));
     this.barMapper   = barMapper ?? throw new ArgumentNullException(nameof(barMapper));
     this.toaster     = toaster ?? throw new ArgumentNullException(nameof(toaster));
 }