Пример #1
0
 public void CanGetByCode()
 {
     if (_repository.Create(sexTest))
     {
         Sex sexFinded = _repository.GetByCode(sexTest.Code);
         Assert.AreEqual(sexTest, sexFinded);
     }
     else
     {
         Assert.Fail("Can't create the sex object for test");
     }
 }
        private bool CreatePerson()
        {
            bool created = false;

            _roleRepository.Create(roleTest);
            _sexRepository.Create(sexTest);
            _companyRepository.Create(companyTest);

            if (_personRepository.Create(personTest))
            {
                created = true;
            }

            return(created);
        }