public void Should_Delete_Wiki_Page() { redmineManager.DeleteWikiPage(PROJECT_ID, WIKI_PAGE_NAME); try { WikiPage page = redmineManager.GetWikiPage(PROJECT_ID, null, WIKI_PAGE_NAME); } catch (RedmineException exc) { StringAssert.Contains(exc.Message, "Not Found"); return; } Assert.Fail("Test failed"); }
public void RedmineWikiPages_ShouldDelete() { redmineManager.DeleteWikiPage("9", "Wiki"); try { WikiPage page = redmineManager.GetWikiPage("9", null, "Wiki"); } catch (RedmineException exc) { StringAssert.Contains(exc.Message, "Not Found"); return; } Assert.Fail("Test failed"); }
/// <summary> /// Deletes the wiki page asynchronous. /// </summary> /// <param name="redmineManager">The redmine manager.</param> /// <param name="projectId">The project identifier.</param> /// <param name="pageName">Name of the page.</param> /// <returns></returns> public static Task DeleteWikiPageAsync(this RedmineManager redmineManager, string projectId, string pageName) { return(Task.Factory.StartNew(() => redmineManager.DeleteWikiPage(projectId, pageName), CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default)); }
/// <summary> /// Deletes the wiki page asynchronous. /// </summary> /// <param name="redmineManager">The redmine manager.</param> /// <param name="projectId">The project identifier.</param> /// <param name="pageName">Name of the page.</param> /// <returns></returns> public static Task DeleteWikiPageAsync(this RedmineManager redmineManager, string projectId, string pageName) { return(delegate { redmineManager.DeleteWikiPage(projectId, pageName); }); }
/// <summary> /// Deletes the wiki page asynchronous. /// </summary> /// <param name="redmineManager">The redmine manager.</param> /// <param name="projectId">The project identifier.</param> /// <param name="pageName">Name of the page.</param> /// <returns></returns> public static Task DeleteWikiPageAsync(this RedmineManager redmineManager, string projectId, string pageName) { return(Task.Factory.StartNew(() => redmineManager.DeleteWikiPage(projectId, pageName), TaskCreationOptions.LongRunning)); }