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);
        }
Beispiel #2
0
        public void TestAddRooms()
        {
            AdditionalMethods model = new AdditionalMethods();

            model.AddRooms(RoomType.single);
            Assert.AreEqual(1, model.DisplayRooms().Count);
        }
Beispiel #3
0
        public void TestNowyPensjonat()
        {
            AdditionalMethods model = new AdditionalMethods();

            Assert.AreEqual(0, model.DisplayGuests().Count);
            Assert.AreEqual(0, model.DisplayRooms().Count);
        }
Beispiel #4
0
        public void TestAddGuest()
        {
            AdditionalMethods model = new AdditionalMethods();

            model.AddGuest("Łucja", "Wołkowicz", "Polish");
            Assert.AreEqual(1, model.DisplayGuests().Count);
            Assert.AreEqual(0, model.DisplayRooms().Count);
        }