コード例 #1
0
        public async Task TestGetAllGroupsWithQuestions()
        {
            using (var client = new TestClientProvider().Client)
            {
                var response = await client.GetAsync("/api/faq/groupsWithQuestions");

                response.EnsureSuccessStatusCode();
                response.StatusCode.Should().Be(HttpStatusCode.OK);
            }
        }
コード例 #2
0
        public async Task TestSearch()
        {
            using (var client = new TestClientProvider().Client)
            {
                var response = await client.GetAsync("/api/faq/search/some string");

                response.EnsureSuccessStatusCode();
                response.StatusCode.Should().Be(HttpStatusCode.OK);
            }
        }