public void UpdateRestaurant()
        {
            var ctxt = new RestaurantContext();
            var srv  = new RestaurantsServices(ctxt);

            var idrestoav = srv.getAll().Last().ID;
            var resto     = srv.getRestobyid(idrestoav);

            Assert.AreEqual("mon resto", resto.Nom);
            resto.Nom = "mon resto 2";
            srv.update(resto);
            var idrestoap = srv.getAll().Last().ID;
            var restoap   = srv.getRestobyid(idrestoap);

            Assert.AreEqual("mon resto 2", restoap.Nom);
        }
        public void UpdateNote()
        {
            var ctxt = new RestaurantContext();
            var srv  = new RestaurantsServices(ctxt);

            var idrestoav = srv.getAll().Last().ID;
            var resto     = srv.getRestobyid(idrestoav);

            Assert.AreEqual("13", resto.note.note);
            resto.note.note = "20";
            srv.update(resto);
            var idrestoap = srv.getAll().Last().ID;

            resto = srv.getRestobyid(idrestoap);

            Assert.AreEqual("20", resto.note.note);
        }