public async void GetAll_WhenCalledReturnsAllQuestions() { const int expectedNumber = NumberOfSearchTerms; var actual = await repository.GetAll(); actual.Count.ShouldEqual(expectedNumber); }
// GET api/searchterms public async Task <IEnumerable <SearchTerm> > Get() { return(await repository.GetAll()); }