コード例 #1
0
        public void Search_Law_HappyPath()
        {
            ITopicaService service = new TopicaService(TestHelper.GetAppConfiguration());
            var            results = service.AutoComplete("law", "Artigo 1 da Constituição de 1988", null);

            Assert.IsTrue(results.Count == 1, "Tag not found.");
        }
コード例 #2
0
        public void Search_State_HappyPath()
        {
            ITopicaService service = new TopicaService(TestHelper.GetAppConfiguration());
            var            results = service.AutoComplete("state", "Governo Dilma Rousseff", null);

            Assert.IsTrue(results.Count == 1, "Tag not found.");
        }
コード例 #3
0
        public void Search_Book_HappyPath()
        {
            ITopicaService service = new TopicaService(TestHelper.GetAppConfiguration());
            var            results = service.AutoComplete("book", "política [aristóteles]", null);

            Assert.IsTrue(results.Count == 1, "Tag not found.");
        }
コード例 #4
0
        public void Search_Topic_HappyPath()
        {
            ITopicaService service = new TopicaService(TestHelper.GetAppConfiguration());
            var            results = service.AutoComplete("topic", "Tensão entre cultura e razão", null);

            Assert.IsTrue(results.Count == 1, "Tag not found.");
        }
コード例 #5
0
        public void Search_Institution_HappyPath()
        {
            ITopicaService service = new TopicaService(TestHelper.GetAppConfiguration());
            var            results = service.AutoComplete("institution", "igreja católica", null);

            Assert.IsTrue(results.Count == 1, "Tag not found.");
        }
コード例 #6
0
        public void Search_Period_HappyPath()
        {
            ITopicaService service = new TopicaService(TestHelper.GetAppConfiguration());
            var            results = service.AutoComplete("period", "Brasil da República Velha", null);

            Assert.IsTrue(results.Count == 1, "Tag not found.", null);
        }
コード例 #7
0
        public void Search_Area_HappyPath()
        {
            ITopicaService service = new TopicaService(TestHelper.GetAppConfiguration());
            var            results = service.AutoComplete("area", "brasil", null);

            Assert.IsTrue(results.Count == 1, "Tag not found.");
        }
コード例 #8
0
        public void Search_Library_HappyPath()
        {
            ITopicaService service = new TopicaService(TestHelper.GetAppConfiguration());
            var            results = service.AutoComplete("library", "Biblioteca do Rafael", null);

            Assert.IsTrue(results.Count == 1, "Tag not found.");
        }
コード例 #9
0
        public void Search_Skill_HappyPath()
        {
            ITopicaService service = new TopicaService(TestHelper.GetAppConfiguration());
            var            results = service.AutoComplete("skill", "Mitose e meiose", null);

            Assert.IsTrue(results.Count == 1, "Tag not found.");
        }