Exemplo n.º 1
0
        public void Given_NameAndRegularRates_Add_Hotel_To_List()
        {
            string hotelName = "Lakewood";
            int    weekdayRatesForRegularCustomer = 110;
            int    weekendRatesForRegularCustomer = 90;
            int    weekdayRatesForRewardCustomer  = 80;
            int    weekendRatesForRewardCustomer  = 80;

            int rating = 3;

            hotelSystem.AddHotel(new Hotel(hotelName, weekdayRatesForRegularCustomer, weekendRatesForRegularCustomer, weekdayRatesForRewardCustomer, weekendRatesForRewardCustomer, rating));

            Assert.AreEqual(1, hotelSystem.hotelList.Count);
        }
        public void GivenHotelCheckName()
        {
            string          hotelName = "Lakewood";
            int             ratesForRegularCustomer = 10000;
            RegularCustomer regularCustomer         = new RegularCustomer();
            Hotel           hotel = new Hotel(hotelName, ratesForRegularCustomer, regularCustomer);

            hotelSystem.AddHotel(hotel);
            Assert.AreEqual("Lakewood", hotelSystem.hotelList[0].name);
        }
        public void TestMethod1()
        {
            string hotelName = "Lakewood";
            int    ratesForRegularCustomer = 110;
            Hotel  hotel = new Hotel(hotelName, ratesForRegularCustomer);

            hotelSystem.AddHotel(hotel);
            Assert.AreEqual("Lakewood", hotelSystem.hotelList[0].name);
        }