public void FindByIdTest()
        {
            var model = CreateNewModel();
            var id    = model.Id;

            var entry = CareerAdviceComment.FindById(id);

            Assert.NotNull(entry);

            TestHelper.AssertObject(model, entry);
        }
        internal CareerAdviceComment CreateNewModel()
        {
            var ignores = ignoreProperties.Split(',');
            var model   = new CareerAdviceComment();

            TestHelper.FillRndProperties(model, ignores);

            var saveResult = model.Save();

            Assert.IsTrue(saveResult);
            return(model);
        }
        public void DeleteTest()
        {
            var model = CreateNewModel();
            var id    = model.Id;

            var saveResult = model.Save();

            Assert.IsTrue(saveResult);

            model.Delete();

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

            Assert.Null(entry);
        }