Пример #1
0
        public async void GetAll_WhenCalledReturnsAllQuestions()
        {
            const int expectedNumber = NumberOfSearchTerms;

            var actual = await repository.GetAll();

            actual.Count.ShouldEqual(expectedNumber);
        }
Пример #2
0
 // GET api/searchterms
 public async Task <IEnumerable <SearchTerm> > Get()
 {
     return(await repository.GetAll());
 }