コード例 #1
0
        public void Response200Success()
        {
            var user          = DefaultConfig.FirstUser;
            var issueResponse = api.IssueSila(user.UserHandle, 1000, user.PrivateKey);

            Assert.AreEqual(200, issueResponse.StatusCode);
            var response       = api.CancelTransaction(user.UserHandle, user.PrivateKey, ((TransactionResponse)issueResponse.Data).TransactionId);
            var parsedResponse = (BaseResponse)response.Data;

            Assert.IsNotNull(parsedResponse.Message);
            Assert.IsNotNull(parsedResponse.Reference);
            Assert.IsNotNull(parsedResponse.Status);
        }