Exemple #1
0
 public UserCollectionsController(IArticleLibraryRepository articleLibraryRepository, IMapper mapper)
 {
     _articleLibraryRepository = articleLibraryRepository ??
                                 throw new ArgumentNullException(nameof(articleLibraryRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }
Exemple #2
0
 public ArticlesController(IArticleLibraryRepository articleLibraryRepository, IMapper mapper, ITagLibraryRepository tagLibraryRepository)
 {
     _articleLibraryRepository = articleLibraryRepository ??
                                 throw new ArgumentNullException(nameof(articleLibraryRepository));
     _tagLibraryRepository = tagLibraryRepository ??
                             throw new ArgumentNullException(nameof(tagLibraryRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }
        public UsersController(IArticleLibraryRepository articleLibraryRepository, IMapper mapper,
                               IPropertyMappingService propertyMappingService)
        {
            _articleLibraryRepository = articleLibraryRepository ??
                                        throw new ArgumentNullException(nameof(articleLibraryRepository));

            _mapper = mapper ??
                      throw new ArgumentNullException(nameof(mapper));

            _propertyMappingService = propertyMappingService ??
                                      throw new ArgumentNullException(nameof(propertyMappingService));
        }