Beispiel #1
0
        public void CleanUp()
        {
            var           operations   = new ContentOperations <ContentBlocks>();
            ContentBlocks contentBlock = new ContentBlocks();

            contentBlock.ID = contentBlockId;
            if (operations.GetItem(contentBlock).StatusCode == HttpStatusCode.OK)
            {
                operations.Delete(contentBlock);
            }
        }
        public void CleanUp()
        {
            var   operations = new ContentOperations <Blogs>();
            Blogs blogItem   = new Blogs();

            blogItem.ID = blogId;
            if (operations.GetItem(blogItem).StatusCode == HttpStatusCode.OK)
            {
                operations.Delete(blogItem);
            }
        }
Beispiel #3
0
        public void CleanUp()
        {
            var   operations = new ContentOperations <Pages>();
            Pages page       = new Pages();

            page.ID = pageId;
            if (operations.GetItem(page).StatusCode == HttpStatusCode.OK)
            {
                operations.Delete(page);
            }
        }
        public void CleanUp()
        {
            var  operations = new ContentOperations <News>();
            News newsItem   = new News();

            newsItem.ID = newsId;
            if (operations.GetItem(newsItem).StatusCode == HttpStatusCode.OK)
            {
                operations.Delete(newsItem);
            }
        }
        public void CleanUp()
        {
            var            operations = new ContentOperations <ImageLibraries>();
            ImageLibraries library    = new ImageLibraries();

            library.ID = libraryId;
            if (operations.GetItem(library).StatusCode == HttpStatusCode.OK)
            {
                operations.Delete(library);
            }
        }
        public void DeleteBlog()
        {
            this.CreateBlog();
            Blogs blogItem = new Blogs();

            blogItem.ID = blogId;

            var operations = new ContentOperations <Blogs>();

            var response = operations.Delete(blogItem);

            Assert.AreEqual(HttpStatusCode.NoContent, response.StatusCode);
        }
Beispiel #7
0
        public void DeleteContentBlock()
        {
            this.CreateContentBlock();
            ContentBlocks contentBlock = new ContentBlocks();

            contentBlock.ID = contentBlockId;

            var operations = new ContentOperations <ContentBlocks>();

            var response = operations.Delete(contentBlock);

            Assert.AreEqual(HttpStatusCode.NoContent, response.StatusCode);
        }
Beispiel #8
0
        public void DeletePage()
        {
            this.CreatePage();
            Pages page = new Pages();

            page.ID = pageId;

            var operations = new ContentOperations <Pages>();

            var response = operations.Delete(page);

            Assert.AreEqual(HttpStatusCode.NoContent, response.StatusCode);
        }
        public void DeleteNews()
        {
            this.CreateNews();
            News newsItem = new News();

            newsItem.ID = newsId;

            var operations = new ContentOperations <News>();

            var response = operations.Delete(newsItem);

            Assert.AreEqual(HttpStatusCode.NoContent, response.StatusCode);
        }
        public void DeleteEvent()
        {
            this.CreateDraftEvent();
            Events eventItem = new Events();

            eventItem.ID = eventId;

            var operations = new ContentOperations <Events>();

            var response = operations.Delete(eventItem);

            Assert.AreEqual(HttpStatusCode.NoContent, response.StatusCode);
        }
        public void DeleteCalendar()
        {
            this.CreateCalendar();

            Calendars calendar = new Calendars();

            calendar.ID = calendarId;

            var operations = new ContentOperations <Calendars>();

            var response = operations.Delete(calendar);

            Assert.AreEqual(HttpStatusCode.NoContent, response.StatusCode);
        }
        public void CleanUp()
        {
            var    operations = new ContentOperations <Events>();
            Events eventItem  = new Events();

            eventItem.ID = eventId;
            if (operations.GetItem(eventItem).StatusCode == HttpStatusCode.OK)
            {
                operations.Delete(eventItem);
            }

            var       calOperations = new ContentOperations <Calendars>();
            Calendars calendarItem  = new Calendars();

            eventItem.ID = eventId;
            if (calOperations.GetItem(calendarItem).StatusCode == HttpStatusCode.OK)
            {
                calOperations.Delete(calendarItem);
            }
        }