public FiftyOneDegreesService(ISitecoreSettingsWrapper sitecoreSettingsWrapper,
                               IHttpContextWrapper httpContextWrapper, IHttpRuntimeCacheWrapper httpRuntimeCacheWrapper,
                               IWebRequestWrapper webRequestWrapper)
 {
     _sitecoreSettingsWrapper = sitecoreSettingsWrapper;
     _httpContextWrapper      = httpContextWrapper;
     _httpRuntimeCacheWrapper = httpRuntimeCacheWrapper;
     _webRequestWrapper       = webRequestWrapper;
 }
예제 #2
0
        public ProgramSlugScraper(IWebRequestWrapper webRequestWrapper)
        {
            if (webRequestWrapper == null)
            {
                throw new ArgumentNullException("webRequestWrapper");
            }

            _webRequestWrapper = webRequestWrapper;
        }
예제 #3
0
        public ResourceUriScraper(IWebRequestWrapper webRequestWrapper)
        {
            if (webRequestWrapper == null)
            {
                throw new ArgumentNullException("webRequestWrapper");
            }

            _webRequestWrapper = webRequestWrapper;
        }
예제 #4
0
        public ResourceScraper(IWebRequestWrapper webRequestWrapper, IJsonConvertWrapper jsonConvertWrapper)
        {
            if (webRequestWrapper == null)
            {
                throw new ArgumentNullException("webRequestWrapper");
            }
            if (jsonConvertWrapper == null)
            {
                throw new ArgumentNullException("jsonConvertWrapper");
            }

            _webRequestWrapper  = webRequestWrapper;
            _jsonConvertWrapper = jsonConvertWrapper;
        }
예제 #5
0
 public void SetUp()
 {
     webRequestWrapperMock = MockRepository.GenerateMock <IWebRequestWrapper>();
     requestInputQueueMock = MockRepository.GenerateMock <IRequestInputQueue>();
     tradeApi = new BtceTradeApi(webRequestWrapperMock, requestInputQueueMock);
 }
 public InputRequestHandler(IWebRequestWrapper webRequestWrapper, IRequestOutputQueue requestOutputQueue, IConfiguration configuration)
 {
     this.webRequestWrapper = webRequestWrapper;
     this.requestOutputQueue = requestOutputQueue;
     this.configuration = configuration;
 }
예제 #7
0
 public InputRequestHandler(IWebRequestWrapper webRequestWrapper, IRequestOutputQueue requestOutputQueue, IConfiguration configuration)
 {
     this.webRequestWrapper  = webRequestWrapper;
     this.requestOutputQueue = requestOutputQueue;
     this.configuration      = configuration;
 }
예제 #8
0
 public FooApiClient(IWebRequestWrapper webRequestWrapper) =>
예제 #9
0
 public BtceTradeApi(IWebRequestWrapper webRequest, IRequestInputQueue requestInputQueue)
 {
     this.webRequest        = webRequest;
     this.requestInputQueue = requestInputQueue;
 }
 public void SetUp()
 {
     webRequestWrapperMock = MockRepository.GenerateMock<IWebRequestWrapper>();
     requestInputQueueMock = MockRepository.GenerateMock<IRequestInputQueue>();
     tradeApi = new BtceTradeApi(webRequestWrapperMock, requestInputQueueMock);
 }
예제 #11
0
 public BtceTradeApi(IWebRequestWrapper webRequest, IRequestInputQueue requestInputQueue)
 {
     this.webRequest = webRequest;
     this.requestInputQueue = requestInputQueue;
 }