public async Task TestStream()
        {
            var json = File.ReadAllText(Path.Combine("testdata/operations", "operationCreateAccount.json"));

            var streamableTest = new StreamableTest <OperationResponse>(json, OperationDeserializerTest.AssertCreateAccountOperationData);
            await streamableTest.Run();
        }
Пример #2
0
        public async Task TestStream()
        {
            var json = File.ReadAllText(Path.Combine("testdata", "transactionTransaction.json"));

            var streamableTest = new StreamableTest <TransactionResponse>(json, TransactionDeserializerTest.AssertTestData);
            await streamableTest.Run();
        }
Пример #3
0
        public async Task TestStream()
        {
            var json = File.ReadAllText(Path.Combine("testdata", "effectAccountCreated.json"));

            var streamableTest = new StreamableTest <EffectResponse>(json, EffectDeserializerTest.AssertAccountCreatedData);
            await streamableTest.Run();
        }
Пример #4
0
        public async Task TestStream()
        {
            var json = File.ReadAllText(Path.Combine("testdata", "ledger.json"));

            var streamableTest = new StreamableTest <LedgerResponse>(json, LedgerDeserializeTest.AssertTestData);
            await streamableTest.Run();
        }
Пример #5
0
        public async Task TestStreamCursor()
        {
            var json           = File.ReadAllText(Path.Combine("testdata", "effectAccountCreated.json"));
            var eventId        = "65571265847297-1";
            var streamableTest = new StreamableTest <EffectResponse>(json, EffectDeserializerTest.AssertAccountCreatedData, eventId);
            await streamableTest.Run();

            Assert.AreEqual(eventId, streamableTest.LastEventId);
            Assert.AreEqual("https://horizon-testnet.stellar.org/test?cursor=65571265847297-1", streamableTest.Uri);
        }