Ejemplo n.º 1
0
        public void FindByIdTest()
        {
            var model = CreateNewModel();
            var id    = model.Id;

            var entry = CareerAdvice.FindById(id);

            Assert.NotNull(entry);

            TestHelper.AssertObject(model, entry);
        }
Ejemplo n.º 2
0
        public void DeleteTest()
        {
            var model = CreateNewModel();
            var id    = model.Id;

            var saveResult = model.Save();

            Assert.IsTrue(saveResult);

            model.Delete();

            var entry = CareerAdvice.FindById(model.Id);

            Assert.Null(entry);
        }