/*public void RefreshData()
         * {
         *  PensionGuests = resbook.GuestList;
         *  PensionRooms = resbook.RoomList;
         * }*/

        //przykładowa dane
        public void ExampleData()
        {
            model.AddGuest("Marcin", "Wolkowicz", "Polish");
            model.AddGuest("Łucja", "Wolkowicz", "Polish");
            model.AddGuest("Franek", "Wolkowicz", "Polish");
            model.AddRooms(RoomType.doublebed);
            model.AddRooms(RoomType.doublebed);
            model.AddRooms(RoomType.doublebed);
        }
Пример #2
0
        public void TestAddRooms()
        {
            AdditionalMethods model = new AdditionalMethods();

            model.AddRooms(RoomType.single);
            Assert.AreEqual(1, model.DisplayRooms().Count);
        }