示例#1
0
        public async Task <GetPPStateResp> GetPPStateAsync(int ppn, CancellationToken cancellationToken)
        {
            var request = new GetPPState {
                Ppn = ppn
            };
            var response = await SendAsync <GetPPState, GetPPStateResp>(request, cancellationToken).ConfigureAwait(false);

            return(response);
        }
示例#2
0
        public void CanSerializedGetPPState()
        {
            var getPPState = new GetPPState {
                Ppn = 600
            };
            var xml = _serializer.Serialize(getPPState);

            Assert.AreEqual("<GetPPState ppn=\"600\" />", xml);
        }