Beispiel #1
0
        public void TestCancelReservation()
        {
            AdditionalMethods model = new AdditionalMethods();

            model.AddGuest("Łucja", "Wołkowicz", "Polish");
            model.DisplayRooms().Add(new Room(1, 200, RoomType.doublebed));
            model.AddReservation(1, RoomType.doublebed);
            model.CancelReservation(1);
            Assert.AreEqual(0, model.DisplayGuests()[0].NrofRoom);
            Assert.IsFalse(model.DisplayRooms()[0].IfOccupied);
        }
 //odwołuje rezerwację
 public void CancelButtonReservation()
 {
     model.CancelReservation(IdRobocze);
     this.OnPropertyChanged();
     this.OdswiezShowedList();
 }