public UnitOfWork(CustomerContext context) { this._dbContext = context; }
public CustomerRepository(CustomerContext dbContext, IHttpClientFactory httpClientFactory) { this._dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); this.httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory)); }