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); }
public BusinessObjectActionReport <DataRepositoryActionStatus> Delete(MessageRating messageRating) { return(_CMSContentRatingManager.Delete(messageRating.CMSContentRating)); }