public void TestAccountHolderBalanceSuccess() { var client = CreateMockTestClientNullRequiredFieldsRequest("Mocks/marketpay/fund/account-holder-balance-success.json"); var fund = new Fund(client); var accountHolderBalanceRequest = new AccountHolderBalanceRequest("TestAccountHolder877209"); var accountHolderBalanceResponse = fund.AccountHolderBalance(accountHolderBalanceRequest); Assert.AreEqual("8515803871979158", accountHolderBalanceResponse.PspReference); Assert.AreEqual("112548519", accountHolderBalanceResponse.BalancePerAccount[0].AccountCode); Assert.AreEqual("128653506", accountHolderBalanceResponse.BalancePerAccount[1].AccountCode); Assert.AreEqual("162991090", accountHolderBalanceResponse.BalancePerAccount[2].AccountCode); Assert.AreEqual("EUR", accountHolderBalanceResponse.BalancePerAccount[0].DetailBalance.Balance[0].Currency); Assert.AreEqual(-1080670, accountHolderBalanceResponse.BalancePerAccount[0].DetailBalance.Balance[0].Value); Assert.AreEqual("USD", accountHolderBalanceResponse.BalancePerAccount[0].DetailBalance.Balance[1].Currency); Assert.AreEqual(-1085000, accountHolderBalanceResponse.BalancePerAccount[0].DetailBalance.Balance[1].Value); Assert.AreEqual("GBP", accountHolderBalanceResponse.BalancePerAccount[0].DetailBalance.Balance[2].Currency); Assert.AreEqual(-1085000, accountHolderBalanceResponse.BalancePerAccount[0].DetailBalance.Balance[2].Value); Assert.AreEqual(0, accountHolderBalanceResponse.TotalBalance.PendingBalance.Count); Assert.AreEqual(0, accountHolderBalanceResponse.TotalBalance.OnHoldBalance.Count); Assert.AreEqual(3, accountHolderBalanceResponse.TotalBalance.Balance.Count); Assert.AreEqual(-1080670, accountHolderBalanceResponse.TotalBalance.Balance[0].Value); Assert.AreEqual("EUR", accountHolderBalanceResponse.TotalBalance.Balance[0].Currency); Assert.AreEqual(-1085000, accountHolderBalanceResponse.TotalBalance.Balance[1].Value); Assert.AreEqual("USD", accountHolderBalanceResponse.TotalBalance.Balance[1].Currency); Assert.AreEqual(-1085000, accountHolderBalanceResponse.TotalBalance.Balance[2].Value); Assert.AreEqual("GBP", accountHolderBalanceResponse.TotalBalance.Balance[2].Currency); }