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(); }
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", "operationCreateAccount.json")); var streamableTest = new StreamableTest <OperationResponse>(json, OperationDeserializerTest.AssertCreateAccountOperationData); 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 async Task TestStream() { var json = File.ReadAllText(Path.Combine("testdata", "transactionTransaction.json")); var streamableTest = new StreamableTest <TransactionResponse>(json, TransactionDeserializerTest.AssertTestData); await streamableTest.Run(); }
public async Task TestStream() { var json = File.ReadAllText(Path.Combine("testdata", "ledger.json")); var streamableTest = new StreamableTest <LedgerResponse>(json, LedgerDeserializeTest.AssertTestData); await streamableTest.Run(); }
public async Task TestStream() { var json = File.ReadAllText(Path.Combine("testdata", "effectAccountCreated.json")); var streamableTest = new StreamableTest <EffectResponse>(json, EffectDeserializerTest.AssertAccountCreatedData); await streamableTest.Run(); }
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); }
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"); }
public void TestHelloStream() { var streamableTest = new StreamableTest <object>($"\"hello\"{Environment.NewLine}", r => { Assert.IsNull(r); }); streamableTest.AssertIsValid(); }
public void TestUknownStream() { var streamableTest = new StreamableTest <object>($"", r => { Assert.IsNull(r); }); streamableTest.AssertIsValid(); }