public void GetWithdrawalFees_Should_ReturnFees() { // arrange var expected = new BitfinexWithdrawalFees() { Withdraw = new Dictionary <string, decimal> { { "BTC", 0.1m }, { "ETH", 0.2m }, } }; var objects = TestHelpers.PrepareClient(() => Construct(new BitfinexClientOptions() { ApiCredentials = new ApiCredentials("Test", "Test") }), JsonConvert.SerializeObject(expected)); // act var result = objects.Client.GetWithdrawalFees(); // assert Assert.AreEqual(true, result.Success); Assert.AreEqual(expected.Withdraw["BTC"], result.Data.Withdraw["BTC"]); Assert.AreEqual(expected.Withdraw["ETH"], result.Data.Withdraw["ETH"]); }
public void GetWithdrawalFees_Should_ReturnFees() { // arrange var expected = new BitfinexWithdrawalFees() { Withdraw = new Dictionary <string, decimal> { { "BTC", 0.1m }, { "ETH", 0.2m }, } }; var client = TestHelpers.CreateAuthenticatedResponseClient(expected); // act var result = client.GetWithdrawalFees(); // assert Assert.AreEqual(true, result.Success); Assert.AreEqual(expected.Withdraw["BTC"], result.Data.Withdraw["BTC"]); Assert.AreEqual(expected.Withdraw["ETH"], result.Data.Withdraw["ETH"]); }
public void GetWithdrawalFees_Should_ReturnFees() { // arrange var expected = new BitfinexWithdrawalFees() { Withdraw = new Dictionary <string, decimal> { { "BTC", 0.1m }, { "ETH", 0.2m }, } }; var client = PrepareClient(JsonConvert.SerializeObject(expected)); // act var result = client.GetWithdrawalFees(); // assert Assert.AreEqual(true, result.Success); Assert.AreEqual(expected.Withdraw["BTC"], result.Data.Withdraw["BTC"]); Assert.AreEqual(expected.Withdraw["ETH"], result.Data.Withdraw["ETH"]); }