public AgentListingCounter(IListingFetcher agentFetcher, ITaskBatcher taskBatcher, IAgentCollectionResultParser agentCollectionResultParser) { _agentFetcher = agentFetcher; _taskBatcher = taskBatcher; _agentCollectionResultParser = agentCollectionResultParser; }
public void Setup() { var fixture = new Fixture(); _apiKey = fixture.Create <string>(); _jsonApiGetRequest = new Mock <IJsonApiGetRequest>(); _agentCollectionResultValidator = new Mock <IAgentCollectionResultValidator>(); _httpResponseMessageJsonParser = new Mock <IHttpResponseMessageJsonParser>(); _listingFetcher = new ListingFetcher(_jsonApiGetRequest.Object, _agentCollectionResultValidator.Object, _httpResponseMessageJsonParser.Object, _apiKey); }