public void RedditSearchUrl_ValidDomain_SearchUrlWithDomain() { var access = new RedditAccess(); var expected = "/r/sports.json?limit=100&site=imgur.com"; var actual = access.RetrieveUrlWithDomain("imgur.com"); Assert.AreEqual(expected, actual); }
public void RedditSearchUrl_EmptyDomain_RootDomainOnly() { var access = new RedditAccess(); var expected = "/r/sports.json?limit=100"; var actual = access.RetrieveUrlWithDomain(""); Assert.AreEqual(expected, actual); }
// Please set the following connection strings in app.config for this WebJob to run: // AzureWebJobsDashboard and AzureWebJobsStorage static void Main() { var redditAccess = new RedditAccess(); redditAccess.ListenForPrompt(); }