public void TestStream()
        {
            var json           = File.ReadAllText(Path.Combine("testdata", "transactionTransaction.json"));
            var streamableTest = new StreamableTest <TransactionResponse>(json, TransactionDeserializerTest.AssertTestData);

            streamableTest.AssertIsValid();
        }
        public void TestStream()
        {
            var json           = File.ReadAllText(Path.Combine("testdata", "ledger.json"));
            var streamableTest = new StreamableTest <LedgerResponse>(json, LedgerDeserializeTest.AssertTestData);

            streamableTest.AssertIsValid();
        }
        public void TestStream()
        {
            var json           = File.ReadAllText(Path.Combine("testdata", "effectAccountCreated.json"));
            var streamableTest = new StreamableTest <EffectResponse>(json, EffectDeserializerTest.AssertAccountCreatedData);

            streamableTest.AssertIsValid();
        }
        public void TestStream()
        {
            var json           = File.ReadAllText(Path.Combine("testdata", "operationCreateAccount.json"));
            var streamableTest = new StreamableTest <OperationResponse>(json, OperationDeserializerTest.AssertCreateAccountOperationData);

            streamableTest.AssertIsValid();
        }
        public void TestStreamCursor()
        {
            var json           = File.ReadAllText(Path.Combine("testdata", "effectAccountCreated.json"));
            var streamableTest = new StreamableTest <EffectResponse>(json, r =>
            {
                //do nothing
            });

            streamableTest.AssertIsValid();

            var url = streamableTest.Uri;

            Assert.AreEqual(streamableTest.Uri, "https://horizon-testnet.stellar.org/test?cursor=65571265847297-1");
        }
Ejemplo n.º 6
0
        public void TestHelloStream()
        {
            var streamableTest = new StreamableTest <object>($"\"hello\"{Environment.NewLine}", r => { Assert.IsNull(r); });

            streamableTest.AssertIsValid();
        }
Ejemplo n.º 7
0
        public void TestUknownStream()
        {
            var streamableTest = new StreamableTest <object>($"", r => { Assert.IsNull(r); });

            streamableTest.AssertIsValid();
        }