Exemple #1
0
        public void TestGetProfilesMethod()
        {
            bool Success;

            var personsRepository = new PersonsRepository();

            var addProfileModel =
                new AddProfileModel
            {
                FirstName   = "test",
                LastName    = "test",
                Patronymic  = "test",
                PhoneNumber = "test"
            };
            var addedProfileId = personsRepository.AddProfile(addProfileModel);
            var profilesList   = personsRepository.GetProfiles();

            Success = profilesList.Count > 0 ? true : false;
            personsRepository.DeleteProfile(addedProfileId);

            Assert.IsTrue(Success);
        }