private static void GetBalance() { decimal balance = violinBtce.GetBalance(Currency.usd); Console.WriteLine(balance); Console.ReadLine(); }
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); }