public PersonRepository(ILendingLibraryDbContext lendingLibraryDbContext)
 {
     if (lendingLibraryDbContext == null) throw new ArgumentNullException(nameof(lendingLibraryDbContext));
     _lendingLibraryDbContext = lendingLibraryDbContext;
 }
 private static PersonRepository CreatePersonRepository(ILendingLibraryDbContext lendingLibraryDbContext)
 {
     return new PersonRepository(lendingLibraryDbContext);
 }
 private static ItemsRepository CreateItemsRepository(ILendingLibraryDbContext lendingLibraryDbContext)
 {
     return new ItemsRepository(lendingLibraryDbContext);
 }
 public LendingTransactionRepository(ILendingLibraryDbContext dbContext)
 {
     if (dbContext == null) throw new ArgumentNullException("dbContext");
     _dbContext = dbContext;
 }
 public PersonRepository(ILendingLibraryDbContext dbContext) 
 {
     if (dbContext == null) throw new ArgumentNullException("dbContext");
     this._dbContext = dbContext;
 }
 private static LendingRepository CreateLendingController(ILendingLibraryDbContext lendingLibraryDbContext = null)
 {
     if (lendingLibraryDbContext == null)
     {
         lendingLibraryDbContext = Substitute.For<ILendingLibraryDbContext>();
     }
     return new LendingRepository(lendingLibraryDbContext);
 }
 public BorrowerRepositoryBuilder WithDbContext(ILendingLibraryDbContext lendingLibraryDbContext)
 {
     _lendingLibraryDbContext = lendingLibraryDbContext;
     return this;
 }
 public ItemRepositoryBuilder WithDbContext(ILendingLibraryDbContext lendingLibraryDbContext)
 {
     _ilendingDbContext = lendingLibraryDbContext;
     return this;
 }
 public LoanRepository(ILendingLibraryDbContext context)
 {
     if (context == null) throw new ArgumentNullException(nameof(context));
     _context = context;
 }