예제 #1
0
        public void SearchGlossaryByKeyword_to_return_results_from_terms_or_description_texts()
        {
            var response = _service.Search(new RequestModel <string>()
            {
                FilterModel = "debt", PageNumber = 1, PageSize = 50
            });

            response.Result.Records.Count.Should().Be(2);
            response.Result.Records.Select(x => x.Term.Contains("debt") || x.Text.Contains("debt")).Count().Should()
            .Be(2);
        }
예제 #2
0
        public async Task <ResponseModel <GlossaryModel> > Search([FromBody] RequestModel <string> request)
        {
            var response = await _service.Search(request);

            return(response);
        }