public UnitOfWork(IWordGameDbContext dbContext) { if (dbContext == null) { throw new ArgumentNullException("dbContext cannot be null"); } this.dbContext = dbContext; }
public Repository(IWordGameDbContext dbContext) { Guard.WhenArgument(dbContext, "dbContext cannot be null").IsNull().Throw(); this.dbContext = dbContext; }