示例#1
0
        public void Get_All_Toys_Should_Return_A_List()
        {
            var db   = new xmasDB();
            var list = db.GetAllToys();

            Assert.AreEqual(2, list.Count());
        }
示例#2
0
        public ActionResult Index()
        {
            xmasDB db    = new xmasDB();
            var    toys  = db.GetAllToys().ToList();
            Toys   model = new Toys
            {
                EntityList = toys
            };

            return(View(model));
        }