public EntityFrameworkUnitOfWork(DbContext dbContext) { if (dbContext == null) { throw new ArgumentNullException(nameof(dbContext)); } this.dbContext = dbContext; this.repository = new EntityFrameworkRepository(dbContext); }