コード例 #1
0
        public async Task ProvidedSignedTx_ShouldPostCommitTransaction()
        {
            var signedTx = GetMockResponseSignedTx();

            var connection = new BigchainConnection(bigchainhost);

            var(response, status) = await connection.PostTransactionCommit(signedTx);

            Assert.AreNotEqual(status, HttpStatusCode.BadRequest);
            Assert.That(status == HttpStatusCode.Accepted || status == HttpStatusCode.Created || status == HttpStatusCode.NoContent);
        }