Exemple #1
0
        public void TestRoomRemoval()
        {
            var sut = new GuestController();

            GuestController.Current       = new Reservation();
            GuestController.Current.Rooms = new List <Room>();
            GuestController.Current.Rooms.Add(new Room {
                RoomID = 2, IsOccupied = false, MaxCapacity = 4, NumberOfBathrooms = 2, NumberOfBeds = 4, DailyRate = 100M, LocationID = 1, SizeSqFt = 450
            });
            sut.RemoveRoom();
            var actual   = GuestController.Current.Rooms;
            var expected = 0;

            Assert.True(actual.Count == expected);
        }