예제 #1
0
        public void CanDeleteCv()
        {
            //Arrange
            var cvRepository = new CvRepository(GetSqlLiteContext());
            var cv           = new Cv()
            {
                Name = Constants.CvName, TagLine = Constants.CvTagLine, Blurb = Constants.CvBlurb
            };

            cvRepository.Add(cv);
            var cvId = cvRepository.Get()[0].Id;

            //Act
            cvRepository.Delete(cvId);

            //Assert
            Assert.AreEqual(0, cvRepository.Get().Count);
        }