public void GetResourceStarByResourceID() { PageViewCountService pageviewCountService = new PageViewCountService(); PageViewCount pageViewCount = pageviewCountService.GetPageViewCountByResourceID("f3557d62-c521-48d4-9aea-5b23095b5005");; Assert.IsNotNull(pageViewCount); }
public void PageViewCountUpdate() { PageViewCountService pageviewCountService = new PageViewCountService(); PageViewCount pageViewCount = pageviewCountService.GetPageViewCountByResourceID("f3557d62-c521-48d4-9aea-5b23095b5005"); pageViewCount.Count++; pageviewCountService.Update(pageViewCount); }
public void ResourceStarCreate() { PageViewCountService pageviewCountService = new PageViewCountService(); PageViewCount pageViewCount = new PageViewCount(); pageViewCount.PageViewCountID = Guid.NewGuid().ToString(); pageViewCount.ResourceID = "f3557d62-c521-48d4-9aea-5b23095b5005"; pageViewCount.Count = 10; pageviewCountService.Create(pageViewCount); }
public void PageViewCountDelete() { PageViewCountService pageviewCountService = new PageViewCountService(); pageviewCountService.DeleteByResourceID("f3557d62-c521-48d4-9aea-5b23095b5005"); }