Esempio n. 1
0
        private static void GetBalance()
        {
            decimal balance = violinBtce.GetBalance(Currency.usd);

            Console.WriteLine(balance);
            Console.ReadLine();
        }
Esempio n. 2
0
        public void GetBalance(string key, string secret, Currency currency, decimal yourBalance, bool keyAndSecretAreSpecified)
        {
            // Pre requirements
            SetKeyAndSecretSpecificationRequirement(key, secret, keyAndSecretAreSpecified);

            // Arrange
            ViolinBtce violinBtce = keyAndSecretAreSpecified ? new ViolinBtce(key, secret) : new ViolinBtce();

            // Act
            var result = violinBtce.GetBalance(currency);

            // Assert
            Assert.AreEqual(yourBalance, result);
        }