public void Response200Success()
        {
            var user     = DefaultConfig.FirstUser;
            var response = api.IssueSila(user.UserHandle, 1000, user.PrivateKey);

            api.IssueSila(user.UserHandle, 420, user.PrivateKey);
            var parsedResponse = (TransactionResponse)response.Data;

            Assert.AreEqual(200, response.StatusCode);
            Assert.AreEqual("SUCCESS", parsedResponse.Status);
            Assert.IsFalse(string.IsNullOrWhiteSpace(parsedResponse.TransactionId));
            DefaultConfig.IssueReference = parsedResponse.Reference;
        }
        public void Response401()
        {
            var user    = DefaultConfig.FirstUser;
            var failApi = new SilaApi(DefaultConfig.environment,
                                      "3a1076bf45ab87712ad64ccb3b10217737f7faacbf2872e88fdd9a537d8fe266",
                                      DefaultConfig.appHandle);
            var response = failApi.IssueSila(user.UserHandle, 1000, user.PrivateKey);

            Assert.AreEqual(401, response.StatusCode, "Bad app signature status - IssueSila");
        }
        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);
        }