public void ExistParagraphInDb_ExpectedParameters_Ok() { paragraphDataAccess.Add(paragraph); bool exists = paragraphDataAccess.Exists(paragraph.Id); Assert.IsTrue(exists); }
public void AddParagraph(Paragraph newParagraph) { if (paragraphDataAccess.Exists(newParagraph.Id)) { throw new DuplicateWaitObjectException("newParagraph.Id" , "The Paragraph you want to enter already exists in the database."); } paragraphDataAccess.Add(newParagraph); }