Ejemplo 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());
        }
Ejemplo 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;
        }
Ejemplo n.º 3
0
 public static void MyClassInitialize(TestContext testContext)
 {
     client = new RippleClient(serverUrl);
     client.Connect().Wait();
 }