public void SuggestPartyTypeTest() { var query = new PartySuggestQuery("Виташевский Игорь"); query.type = PartyType.INDIVIDUAL; var response = api.QueryParty(query); Assert.AreEqual("550608718785", response.suggestions[0].data.inn); Console.WriteLine(string.Join("\n", response.suggestions)); }
public void SuggestPartyStatusTest() { var query = new PartySuggestQuery("витас"); query.status = new PartyStatus[] { PartyStatus.LIQUIDATED }; var response = api.QueryParty(query); Assert.AreEqual("4713008497", response.suggestions[0].data.inn); Console.WriteLine(string.Join("\n", response.suggestions)); }
public async Task SuggestPartyTypeTest() { var query = new PartySuggestQuery("витас") { Type = PartyType.INDIVIDUAL }; var response = await Api.QueryParty(query); Assert.Equal("470411980055", response.Suggestions[0].Data.Inn); }
public async Task SuggestPartyStatusTest() { var query = new PartySuggestQuery("витас") { Status = new PartyStatus[] { PartyStatus.LIQUIDATED } }; var response = await Api.QueryParty(query); Assert.Equal("4713008497", response.Suggestions[0].Data.Inn); }
public SuggestPartyResponse QueryParty(PartySuggestQuery query) { var request = new RestRequest(PARTY_RESOURCE, Method.POST); return(Execute <SuggestPartyResponse>(request, query)); }