Esempio n. 1
0
 public void Init()
 {
     repowerService         = new RepowerService(Environments.Environment.SANDBOX, testUtils.GetConsumerKey(), testUtils.GetPrivateKey());
     repowerRequest         = new RepowerRequest();
     repowerReversalService = new RepowerReversalService(Environments.Environment.SANDBOX, testUtils.GetConsumerKey(), testUtils.GetPrivateKey());
     repowerReversalRequest = new RepowerReversalRequest();
 }
        public Repower getRepower(RepowerRequest request)
        {
            string response = "";
            Dictionary <string, string> responseMap = doRequest(getURL(), "POST", Serializer <RepowerRequest> .Serialize(request).InnerXml);

            responseMap.TryGetValue(MESSAGE, out response);
            return(Serializer <Repower> .Deserialize(response));
        }