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)); }
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)); }
public AlbumController(IBandAlbumRepository repo, IMapper mapper) { _repo = repo ?? throw new ArgumentNullException(nameof(repo)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public BandsController(IBandAlbumRepository bandAlbumRepository) { _bandAlbumRepository = bandAlbumRepository ?? throw new ArgumentNullException(nameof(bandAlbumRepository)); }
public BandCollectionController(IBandAlbumRepository bandAlbumRepository, IMapper mapper) { _bandAlbumRepository = bandAlbumRepository; _mapper = mapper; }
public BandCollectionsController(IBandAlbumRepository repository, IMapper mapper) { _repository = repository ?? throw new ArgumentNullException(nameof(repository)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public BandsCollectionsController(IMapper mapper, IBandAlbumRepository bandAlbumRepository) { _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _bandAlbumRepository = bandAlbumRepository ?? throw new ArgumentNullException(nameof(bandAlbumRepository)); }
public AlbumsController(IBandAlbumRepository bandAlbumRepository, IMapper mapper) { this._bandAlbumRepository = bandAlbumRepository ?? throw new ArgumentException(nameof(bandAlbumRepository)); this._mapper = mapper; }