コード例 #1
0
        public void DeleteTextFromDb_ExpectedParameters_Ok()
        {
            textDataAccess.Add(text);

            textDataAccess.Delete(text.Id);

            Text obtained = textDataAccess.Get(text.Id);

            Assert.IsNull(obtained);
        }
コード例 #2
0
        public void DeleteText(Guid aTextId)
        {
            if (!textDataAccess.Exists(aTextId))
            {
                throw new ArgumentException("The text argument not exist in database."
                                            , "aTextId");
            }

            textDataAccess.Delete(aTextId);
        }