示例#1
0
        public void TestGetAllClients()
        {
            var client      = new RegistrationApiClient(apikey, url: testServer);
            var objectArray = client.GetClients().Result;

            Assert.That(objectArray.Count, Is.GreaterThan(3));
        }
示例#2
0
        public void TestGetOneClient()
        {
            var client      = new RegistrationApiClient(apikey, url: testServer);
            var objectArray = client.GetClients(Guid.Parse("74cfd617-56c5-4817-96ad-04c16203b064")).Result;

            Assert.That(objectArray.Count, Is.EqualTo(1));
        }
示例#3
0
        public void TestSaveClient()
        {
            var client        = new RegistrationApiClient(apikey, url: testServer);
            var oneClientData = client.GetClients(Guid.Parse("d46bd292-3645-438f-94e1-afe8c48947c3")).Result.FirstOrDefault(); //Ярослав Баландин

            oneClientData.Snils = "000-000-001 10";
            var res = client.SaveClient(oneClientData).Result;

            Assert.That(res, Is.True);
        }