Example #1
0
 public void GetMenusTest()
 {
     BusinessLogic target = new BusinessLogic(); // TODO: Initialize to an appropriate value
     List<ListaMenu> expected = null; // TODO: Initialize to an appropriate value
     List<ListaMenu> actual;
     actual = target.GetMenus();
     Assert.AreNotEqual(expected, actual);
 }
 private void CargarMenus(bool loadFromSession)
 {
     List<ListaMenu> listamenus = null;
     List<MENU> menus = null;
     if (loadFromSession)
     {
         listamenus = Session["listamenus"] as List<ListaMenu>;
     }
     else
     {
         IMenus bdd = new BusinessLogic();
         listamenus = bdd.GetMenus();
         menus = bdd.GetAllMenus();
         Session.Add("listamenus", listamenus);
         Session.Add("menus", menus);
     }
     gridMenus.DataSource = listamenus;
     gridMenus.DataBind();
 }