public bool Create(WorkMethodology item)
        {
            if (item == null)
            {
                throw new InvalidOperationException("The item can't be null");
            }

            return(_dataAccess.Create(item));
        }
Exemplo n.º 2
0
 public void CanGetByCode()
 {
     if (_repository.Create(workMethodologyTest))
     {
         WorkMethodology workMethodologyFinded = _repository.GetByCode(workMethodologyTest.Code);
         Assert.AreEqual(workMethodologyTest, workMethodologyFinded);
     }
     else
     {
         Assert.Fail("Can't create the sex object for test");
     }
 }