コード例 #1
0
        public void GetResourceStarByResourceID()
        {
            PageViewCountService pageviewCountService = new PageViewCountService();
            PageViewCount        pageViewCount        = pageviewCountService.GetPageViewCountByResourceID("f3557d62-c521-48d4-9aea-5b23095b5005");;

            Assert.IsNotNull(pageViewCount);
        }
コード例 #2
0
        public void PageViewCountUpdate()
        {
            PageViewCountService pageviewCountService = new PageViewCountService();
            PageViewCount        pageViewCount        = pageviewCountService.GetPageViewCountByResourceID("f3557d62-c521-48d4-9aea-5b23095b5005");

            pageViewCount.Count++;
            pageviewCountService.Update(pageViewCount);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        public void PageViewCountDelete()
        {
            PageViewCountService pageviewCountService = new PageViewCountService();

            pageviewCountService.DeleteByResourceID("f3557d62-c521-48d4-9aea-5b23095b5005");
        }