Esempio n. 1
0
 public ProfilesController(IApiModelMapper mapper, IRecentReadsQuery recentReads)
 {
     if (mapper == null) throw new ArgumentNullException("mapper");
     if (recentReads == null) throw new ArgumentNullException("recentReads");
     this.mapper = mapper;
     this.recentReads = recentReads;
 }
Esempio n. 2
0
 public BooksController(IBookImporter importer, IApiModelMapper mapper)
 {
     if (importer == null) throw new ArgumentNullException("importer");
     if (mapper == null) throw new ArgumentNullException("mapper");
     this.importer = importer;
     this.mapper = mapper;
 }
 public PreviousReadsController(IBookImporter importer, 
     IApiModelMapper mapper, IRecentReadsQuery recentReads)
 {
     if (importer == null) throw new ArgumentNullException("importer");
     if (mapper == null) throw new ArgumentNullException("mapper");
     if (recentReads == null) throw new ArgumentNullException("recentReads");
     this.importer = importer;
     this.mapper = mapper;
     this.recentReads = recentReads;
 }