Exemplo n.º 1
0
 public void TestAddNewSeggestAnswer()
 {
     var a = new DataContext();
     //var l = new ();
     var add = new Suggestions.SeggestAnswer()
     {
         SeggestAnswerId = 1,
         Query = "text",
         Answers = new Suggestions.Seggest[] { new Suggestions.Seggest { answer = "aaaa" } }
     };
     a.AddNewSeggestAnswer(add);
     Assert.IsTrue(a.GetAllSeggestAnswer().Contains(add)!=null);
 }
Exemplo n.º 2
0
        public void TestDosearchQuery()
        {
            var a = new GoogleSuggest();
            var l = a.GetSearchSuggestions("איך להפעיל ").Result;

            var b = new DataContext();
            //var l = new ();
            var c = b.GetAllAnswer();
            b.AddNewSeggestAnswer(l);
            var test = b.GetAllSeggestAnswer();
                Assert.IsTrue(test.Contains(l) != null);

            Assert.IsTrue(true);
        }