public void ExistTextInDb_ExpectedParameters_Ok() { textDataAccess.Add(text); bool exists = textDataAccess.Exists(text.Id); Assert.IsTrue(exists); }
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); }