public AgentListingCounter(IListingFetcher agentFetcher, ITaskBatcher taskBatcher,
                            IAgentCollectionResultParser agentCollectionResultParser)
 {
     _agentFetcher = agentFetcher;
     _taskBatcher  = taskBatcher;
     _agentCollectionResultParser = agentCollectionResultParser;
 }
Пример #2
0
        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);
        }