예제 #1
0
        private void SetUpGet()
        {
            httpGetParam = new HttpParameterSet()
            {
                ConsumerKey     = "consumerKey",
                ConsumerSecret  = "consumerSecret",
                Token           = "token",
                TokenSecret     = "tokenSecret",
                OAuthVersion    = "1.0",
                RequestMethod   = "GET",
                SignatureMethod = "HMAC-SHA1",
                Url             = "http://www.gant.com/test?first=value1&second=value2"
            };

            fixedStringGet = new FixedStringGenerator(GET_NONCE);
            fixedClockGet  = new FixedClock(GET_TIMESTAMP);

            signedGetRequest = new OpenedSignedParameterSet10(httpGetParam, fixedStringGet, fixedClockGet);
        }
        private void SetUpGet()
        {
            httpGetParam = new HttpParameterSet()
            {
                ConsumerKey = "consumerKey",
                ConsumerSecret = "consumerSecret",
                Token = "token",
                TokenSecret = "tokenSecret",
                OAuthVersion = "1.0",
                RequestMethod = "GET",
                SignatureMethod = "HMAC-SHA1",
                Url = "http://www.gant.com/test?first=value1&second=value2"
            };

            fixedStringGet = new FixedStringGenerator(GET_NONCE);
            fixedClockGet = new FixedClock(GET_TIMESTAMP);

            signedGetRequest = new OpenedSignedParameterSet10(httpGetParam, fixedStringGet, fixedClockGet);
        }