public void Given_A_Null_SearchListRequestParameter_Should_Throw_ArgumentNullException() { // Arrange // Act Func <Task <LocalWikiSearchResultSet> > act = () => _sut.SearchList(null); // Assert act.Should().Throw <ArgumentNullException>(); }
public async Task Given_A_DomainUrl_And_A_Query_SearchResults_Should_Contain_Atleast_1_Item(string domainUrl, string query) { // Arrange var sut = new WikiSearch(domainUrl); // Act var result = await sut.SearchList(new SearchListRequestParameter(query)); // Assert result.Items.Should().NotBeEmpty(); }
public async Task Given_A_DomainUrl_And_A_Query_Should_Successfully_Retrieve_SearchResults(string domainUrl, string query) { // Arrange var sut = new WikiSearch(domainUrl); // Act var result = await sut.SearchList(new SearchListRequestParameter(query)); // Assert result.Should().NotBeNull(); }