상속: SuggestQuery
 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));
 }
예제 #3
0
        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));
        }
예제 #4
0
        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));
        }
예제 #5
0
        public SuggestBankResponse QueryBank(BankSuggestQuery query)
        {
            var request = new RestRequest(BANK_RESOURCE, Method.POST);

            return(Execute <SuggestBankResponse>(request, query));
        }