Exemplo n.º 1
0
        public static void MyClassInitialize(TestContext testContext)
        {
            client = new RippleClient(serverUrl);
            client.Connect();

            serializerSettings = new JsonSerializerSettings();
            serializerSettings.NullValueHandling    = NullValueHandling.Ignore;
            serializerSettings.DateTimeZoneHandling = DateTimeZoneHandling.Utc;
            serializerSettings.Converters.Add(new TransactionConverter());
        }
Exemplo n.º 2
0
        public static async Task MyClassInitialize(TestContext testContext)
        {
            client = new RippleClient(serverUrl);
            client.Connect();

            string          faucetUrl = "https://faucet.altnet.rippletest.net/accounts";
            AccountResponse result    = await faucetUrl.PostAsync().ReceiveJson <AccountResponse>();

            account = result.Account.Address;
        }
Exemplo n.º 3
0
 public static void MyClassInitialize(TestContext testContext)
 {
     client = new RippleClient(serverUrl);
     client.Connect().Wait();
 }