Esempio n. 1
0
 public CourseLibraryRepository(CourseLibraryContext context,
                                IProppertyMappingService proppertyMappingService)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _proppertyMappingService = proppertyMappingService ??
                                throw new ArgumentNullException(nameof(proppertyMappingService));
 }
Esempio n. 2
0
 public AuthorsController(ICourseLibraryRepository courseLibraryRepository,
                          IMapper mapper, IProppertyMappingService proppertyMappingService,
                          IPropertyCheckerService propertyCheckerService)
 {
     _courseLibraryRepository = courseLibraryRepository ??
                                throw new ArgumentNullException(nameof(courseLibraryRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
     _proppertyMappingService = proppertyMappingService ??
                                throw new ArgumentNullException(nameof(proppertyMappingService));
     _propertyCheckerService = propertyCheckerService ??
                               throw new ArgumentNullException(nameof(propertyCheckerService));
 }