public void SuggestBankTypeTest() { var query = new BankSuggestQuery("я"); query.type = new BankType[] { BankType.NKO }; var response = api.QueryBank(query); Assert.AreEqual("044525444", response.suggestions[0].data.bic); Console.WriteLine(string.Join("\n", response.suggestions)); }
public void SuggestBankStatusTest() { var query = new BankSuggestQuery("витас"); query.status = new PartyStatus[] { PartyStatus.LIQUIDATED }; var response = api.QueryBank(query); Assert.AreEqual("044585398", response.suggestions[0].data.bic); Console.WriteLine(string.Join("\n", response.suggestions)); }
public SuggestBankResponse QueryBank(BankSuggestQuery query) { var request = new RestRequest(BANK_RESOURCE, Method.POST); return(Execute <SuggestBankResponse>(request, query)); }