Пример #1
0
        public void Create()
        {
            IRSuggestion r  = new REFSuggestion(new DataContext(TestBaseEF.GetOptionBuilder().Options));
            VMSuggestion vm = new VMSuggestion()
            {
                Title        = "My Test",
                Description  = "My Description",
                CreatedDate  = DateTime.Now,
                UpdatedDate  = DateTime.Now,
                QuantityVote = 0,
                Author       = new VMUserSimple(1)
            };
            VMMessage msj = r.Insert(vm);

            Assert.IsTrue(msj.IsSuccessful());
        }
Пример #2
0
 public void Search()
 {
     IRSuggestion r = new REFSuggestion(new DataContext(TestBaseEF.GetOptionBuilder().Options));
     //var list = r.Select(10, 1, "", 1);
     //Assert.IsTrue(list.Count() > 0, "No existe filas.");
 }