Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
        public SuggestPartyResponse QueryParty(PartySuggestQuery query)
        {
            var request = new RestRequest(PARTY_RESOURCE, Method.POST);

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