Пример #1
0
        public async Task TestDummyRequest()
        {
            Task <Response> request           = _DummyRequester.GetResponseAsync(_TestRbl);
            Task <Response> requestEnumerable = _DummyRequester.GetResponseAsync(_TestRblSet);

            _Response           = await request;
            _ResponseEnumerable = await requestEnumerable;

            Assert.IsNotNull(_Response);
            Assert.IsNotNull(_ResponseEnumerable);
        }
        public static async Task <IList <VtmResponse> > GetProxyResponseAsync(int rbl)
        {
            IRequester requester = RequesterFactory.Instance;
            Response   response  = await requester.GetResponseAsync(rbl);

            return(_ModifyResponse(response));
        }