public WikiTests(AuthenticatedTestsFixture authenticatedFixture) { authFixture = authenticatedFixture; RedditSharp.WebAgent agent = new RedditSharp.WebAgent(authFixture.AccessToken); reddit = new RedditSharp.Reddit(agent); sub = reddit.GetSubredditAsync(authFixture.Config["TestSubreddit"]).Result; var names = sub.GetWiki.GetPageNamesAsync().Result; if (!names.Select(n => n.ToLower()).Contains(WIKI_PAGE_NAME)) { sub.GetWiki.EditPageAsync(WIKI_PAGE_NAME, "**test** content ***up*** in *hur*").Wait(); } }
public SubredditTests(AuthenticatedTestsFixture authenticatedFixture) { authFixture = authenticatedFixture; }
public PostTests(AuthenticatedTestsFixture authenticatedFixture) { authFixture = authenticatedFixture; }