示例#1
0
        public void GetBalanceRequest()
        {
            string expected = File.ReadAllText(@"TestData\GetBalance\GetBalanceRequestCommand1.xml");
            var    command  = new GetBalanceRequest();

            command.BuildOpsEnvelope("version", "registrantIp");
            var xml = command.RequestXml();

            Assert.AreEqual(expected, xml);
        }
        public GetBalanceResponse GetBalance(GetBalanceRequest request)
        {
            request.BuildOpsEnvelope(_version, _registrantIp);

            return(new GetBalanceResponse(SendRequest(request.RequestXml())));
        }