Beispiel #1
0
 public void GradeRestaurantTest()
 {
     try {
         var note = new Grade {
             Note = 2, DateDerniereVisite = DateTime.Now, Commentaire = "très bien", RestaurantID = 1
         };
         srv.GradeRestaurant(note);
         var restau = db.Restaurants.Include(r => r.LastGrade).FirstOrDefault(r => r.ID == 1);
         Assert.IsTrue(restau.LastGrade.Note == 2);
     } catch (Exception e) {
         Assert.Fail();
     }
 }