public void GetAnyRandomJokesTest(int count) { var options = GetOptions(); var jokeProvider = new JokeWebApiClient(options); var jr = new JokeRequest(count); var results = jokeProvider.GetJokes(jr); Assert.AreEqual(count, results.Count); }
public void GetJokesWithFirstNameOnlyTest(int count) { var options = GetOptions(); var jokeProvider = new JokeWebApiClient(options); var jr = new JokeRequest("Thomas", null, "movie", count); var results = jokeProvider.GetJokes(jr); Assert.AreEqual(count, results.Count); }
public void GetJustCategoryDefaultNameJokesTest(int count) { var options = GetOptions(); var jokeProvider = new JokeWebApiClient(options); var jr = new JokeRequest("animal", count); var results = jokeProvider.GetJokes(jr); Assert.AreEqual(count, results.Count); }