public void AddTextToDb_ExpectedParameters_Ok() { textDataAccess.Add(text); Text obtained = textDataAccess.Get(text.Id); Assert.AreEqual(text, obtained); }
public void AddText(Text newText) { if (textDataAccess.Exists(newText.Id)) { throw new DuplicateWaitObjectException("newText.Id" , "The text you want to enter already exists in the database."); } textDataAccess.Add(newText); }