Exemplo n.º 1
0
        public void Setup()
        {
            controller = new DishesController();
            userid     = 2;
            item       = GetDemoDish();
            var result =
                controller.PostDishes(item, userid);
            List <Dishes> listing = controller.GetDishes().ToList();
            var           dishes  = listing[listing.Count() - 1];

            item.id = dishes.id;
        }
Exemplo n.º 2
0
        public void GetDishes_ReturnListOfDishes()
        {
            List <Dishes> tempdish = controller.GetDishes();

            Assert.IsInstanceOf <List <Dishes> >(tempdish);
        }