public BandsController(IBandAlbumRepository bandAlbumRepository, IMapper mapper, IPropertyMappingService propertyMappingService, IPropertyValidationService propertyValidationService) // there's no reference, how can we add mapper here?
 {
     _bandAlbumRepository = bandAlbumRepository ?? throw new ArgumentNullException(nameof(bandAlbumRepository));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _propertyMappingService    = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
     _propertyValidationService = propertyValidationService ?? throw new ArgumentNullException(nameof(propertyValidationService));
 }
 public AlbumsController(IBandAlbumRepository bandAlbumRepository, IMapper mapper)
 {
     _bandAlbumRepository = bandAlbumRepository ??
         throw new ArgumentNullException(nameof(bandAlbumRepository));
     _mapper = mapper ??
         throw new ArgumentNullException(nameof(mapper));
 }
Beispiel #3
0
 public BandsController(IBandAlbumRepository repository, IMapper mapper, IPropertyMappingService propertyMappingService, IPropertyValidationService propertyValidationService)
 {
     _repository                = repository ?? throw new ArgumentNullException(nameof(repository));
     _mapper                    = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _propertyMappingService    = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
     _propertyValidationService = propertyValidationService ?? throw new ArgumentNullException(nameof(propertyValidationService));
 }
Beispiel #4
0
 public AlbumController(IBandAlbumRepository repo, IMapper mapper)
 {
     _repo = repo ??
             throw new ArgumentNullException(nameof(repo));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }
Beispiel #5
0
 public BandsController(IBandAlbumRepository bandAlbumRepository)
 {
     _bandAlbumRepository = bandAlbumRepository ?? throw new ArgumentNullException(nameof(bandAlbumRepository));
 }
Beispiel #6
0
 public BandCollectionController(IBandAlbumRepository bandAlbumRepository, IMapper mapper)
 {
     _bandAlbumRepository = bandAlbumRepository;
     _mapper = mapper;
 }
Beispiel #7
0
 public BandCollectionsController(IBandAlbumRepository repository, IMapper mapper)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
     _mapper     = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Beispiel #8
0
 public BandsCollectionsController(IMapper mapper, IBandAlbumRepository bandAlbumRepository)
 {
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _bandAlbumRepository = bandAlbumRepository ?? throw new ArgumentNullException(nameof(bandAlbumRepository));
 }
Beispiel #9
0
 public AlbumsController(IBandAlbumRepository bandAlbumRepository, IMapper mapper)
 {
     this._bandAlbumRepository = bandAlbumRepository ?? throw new ArgumentException(nameof(bandAlbumRepository));
     this._mapper = mapper;
 }