public void AddParagraphToDb_ExpectedParameters_Ok() { paragraphDataAccess.Add(paragraph); Paragraph obtained = paragraphDataAccess.Get(paragraph.Id); Assert.AreEqual(paragraph, obtained); }
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); }