public BookService( IBookInfoRepository infoRepository, IBookSheetsRepository sheetsRepository, IBookContentsRepository contentsRepository, IBookNotesRepository notesRepository) { _sheetsRepository = sheetsRepository; _infoRepository = infoRepository; _contentsRepository = contentsRepository; _notesRepository = notesRepository; }
public BookService( IBookInfoRepository infoRepository, IBookSheetsRepository sheetsRepository, IBookContentsRepository contentsRepository, IBookNotesRepository notesRepository) { _sheetsRepository = sheetsRepository ?? throw new ArgumentNullException(nameof(sheetsRepository)); _infoRepository = infoRepository ?? throw new ArgumentNullException(nameof(infoRepository)); _contentsRepository = contentsRepository ?? throw new ArgumentNullException(nameof(contentsRepository)); _notesRepository = notesRepository ?? throw new ArgumentNullException(nameof(notesRepository)); }
private static BookService GetSut( IBookInfoRepository infoRepository, IBookSheetsRepository sheetsRepository, IBookContentsRepository contentsRepository, IBookNotesRepository notesRepository) => new BookService(infoRepository, sheetsRepository, contentsRepository, notesRepository);