public void FindByIdTest() { var model = CreateNewModel(); var id = model.Id; var entry = CareerService.FindById(id); Assert.NotNull(entry); TestHelper.AssertObject(model, entry); }
public void DeleteTest() { var model = CreateNewModel(); var id = model.Id; var saveResult = model.Save(); Assert.IsTrue(saveResult); model.Delete(); var entry = CareerService.FindById(model.Id); Assert.Null(entry); }