public bool Create(WorkMethodology item) { if (item == null) { throw new InvalidOperationException("The item can't be null"); } return(_dataAccess.Create(item)); }
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"); } }