private static bool AddressTest(Iatec.Adems.PeopleManagement.Client.Configuration apiConfig)
        {
            try
            {
                var api   = new PersonAddressApi(apiConfig);
                var atapi = new AddressTypeApi(apiConfig);
                var npApi = new NaturalPersonApi(apiConfig);


                var list = api.GetListPersonAddressByPerson(Guid.Parse("82a91dc7-5db2-4168-a7f9-a2f300e9d24d"));
                //var person2 = npApi.GetPageActiveByFilterForExternal(10, 0, "william de qua");
                //var saved = api.SavePersonAddress(new PersonAddressLiteModel
                //{
                //    AddressLine01 = "teste erro",
                //    AddressType = new AddressTypeModel { Id = list.First().Id },
                //    PersonId = person2.Items.FirstOrDefault().Id
                //});

                return(true);
            }
            catch (ApiException)
            {
                throw;
            }
        }
        private static bool EmergencyContactTest(Iatec.Adems.PeopleManagement.Client.Configuration apiConfig)
        {
            try
            {
                var npApi   = new NaturalPersonApi(apiConfig);
                var person2 = npApi.GetPageActiveByFilterForExternal2("05-02-1994", GenderModel.Male, 10, 0);

                npApi.NaturalPersonSaveSystemReference(person2.Items.Select(x => x.Id).ToList());

                var api   = new EmergencyContactApi(apiConfig);
                var saved = api.SaveEmergencyContact(new EmergencyContactLiteModel
                {
                    ContactPhone    = "Phone",
                    Name            = "Name",
                    Relationship    = "Pai",
                    NaturalPersonId = person2.Items.First().Id,
                });

                return(true);
            }
            catch (ApiException)
            {
                throw;
            }
        }
        private static bool AddressTest(Iatec.Adems.PeopleManagement.Client.Configuration apiConfig)
        {
            try
            {
                var api   = new PersonAddressApi(apiConfig);
                var atapi = new AddressTypeApi(apiConfig);
                var npApi = new NaturalPersonApi(apiConfig);

                var list    = atapi.GetListAddressTypeByFilter();
                var person2 = npApi.GetPageActiveByFilterForExternal(10, 0, "william de qua");
                var saved   = api.SavePersonAddress(new PersonAddressLiteModel
                {
                    AddressLine01 = "teste erro",
                    AddressType   = new AddressTypeModel {
                        Id = list.First().Id
                    },
                    PersonId = person2.Items.FirstOrDefault().Id
                });

                return(true);
            }
            catch (ApiException)
            {
                throw;
            }
        }
        private static bool NaturalPersonTest(Iatec.Adems.PeopleManagement.Client.Configuration apiConfig)
        {
            try
            {
                var npApi = new NaturalPersonApi(apiConfig);

                var person = new NaturalPersonLiteExternalModel
                {
                    BirthDate = DateTime.UtcNow,
                    FullName  = "wilian de q moura",
                    FirstName = "wilian",
                    LastName  = "moura",
                    Gender    = GenderModel.Male,
                    IdentifierDocumentNumber = "91298431034",
                    MotherName = "rosangela q moura",
                };

                var teste = npApi.SaveForExternal(person);
                //var teste = npApi.GetPageActiveByFilterForExternal(0,1);

                //var teste = npApi.SaveForExternal(new NaturalPersonLiteExternalModel
                //{
                //    AuthenticationUserName = "******",
                //    FirstName = "Jabes2",
                //    Gender = GenderModel.Male,
                //    BirthDate = new DateTime(1994, 2, 5),
                //    IdentifierDocumentNumber = "65534613688",
                //    MiddleName = "ta",
                //    LastName = "o",
                //    FullName = "Jabes ta o",
                //    MotherName = "mae",
                //});

                //var teste2 = npApi.GetByUserName("jabes.tao");
                //var teste2 = npApi.GetByIdForExternal(new Guid("2b0632f6-9503-4157-9122-a990004e6a1e"));

                //basicPropList.Add(new NPBasicPropertyModel
                //{
                //    BirthDate = teste.BirthDate,
                //    Gender = teste.Gender,
                //    Name = teste.FirstName,
                //});

                //var personList = npApi.GetListByBasicPropertyList(basicPropList);

                //var list = npApi.GetListNaturalPersonLastSystemUpdateAsync().Result;
                //var ids = list.Select(a => a.NaturalPersonId).Distinct().ToList();

                //npApi.NaturalPersonUpdateNotice(ids);

                //npApi.NaturalPersonDeleteNaturalPerson(new System.Collections.Generic.List<Guid> { teste2.Id });

                return(true);
            }
            catch (Exception)
            {
                throw;
            }
        }