Ejemplo n.º 1
0
        public void DeleteParagraphFromDb_ExpectedParameters_Ok()
        {
            paragraphDataAccess.Add(paragraph);

            paragraphDataAccess.Delete(paragraph.Id);

            Paragraph obtained = paragraphDataAccess.Get(paragraph.Id);

            Assert.IsNull(obtained);
        }
Ejemplo n.º 2
0
        public void DeleteParagraph(Guid aParagraphId)
        {
            if (!paragraphDataAccess.Exists(aParagraphId))
            {
                throw new ArgumentException("The paragraph argument not exist in database."
                                            , "aParagraphId");
            }

            paragraphDataAccess.Delete(aParagraphId);
        }