示例#1
0
        internal static void Delete(IDataStore dataStore, CMSContent content, IUserBasic userBasic)
        {
            CMSContentRatingManager manager = new CMSContentRatingManager(dataStore);

            CMSContentRating contentRating = manager.GetContentRating(content, userBasic);

            BusinessObjectActionReport <DataRepositoryActionStatus> report = manager.Delete(contentRating);

            Assert.AreEqual(DataRepositoryActionStatus.Success, report.Status);
            Assert.IsNull(manager.GetContentRating(content, userBasic));

            Trace.WriteLine("Successfully deleted contentRating " + contentRating.CMSContentId + " -> " + contentRating.CMSUserId);
        }
示例#2
0
 public BusinessObjectActionReport <DataRepositoryActionStatus> Delete(MessageRating messageRating)
 {
     return(_CMSContentRatingManager.Delete(messageRating.CMSContentRating));
 }