public Consumer(ILogger <Consumer> logger, WebserviceOptions webserviceOptions, Func <Uri, IHttpClient> httpClientFactory, IOwnerSorter felineOwnerSorter, IConsoleWriter consoleWriter) { logger.ThrowIfArgumentNull(nameof(logger)); webserviceOptions.ThrowIfArgumentNull(nameof(webserviceOptions)); httpClientFactory.ThrowIfArgumentNull(nameof(httpClientFactory)); felineOwnerSorter.ThrowIfArgumentNull(nameof(felineOwnerSorter)); consoleWriter.ThrowIfArgumentNull(nameof(consoleWriter)); _logger = logger; _webserviceOptions = webserviceOptions; _httpClientFactory = httpClientFactory; _felineOwnerSorter = felineOwnerSorter; _consoleWriter = consoleWriter; }
private void InjectParameters(ILogger <Consumer> logger, WebserviceOptions webserviceOptions, Func <Uri, IHttpClient> httpClientFactory, IOwnerSorter felineOwnerSorter, IConsoleWriter consoleWriter) { _fixture.Inject(logger); _fixture.Inject(webserviceOptions); _fixture.Inject(httpClientFactory); _fixture.Inject(felineOwnerSorter); _fixture.Inject(consoleWriter); }