예제 #1
0
 public void BookADoubleRoomPriceDisplayedIs60()
 {
     var rate = new RoomRate(60).Price();
     var room = new Room(rate);
     int priceOfRoom = room.Price();
     var display = this;
     new Hotel(display).Book(room);
     Assert.That(_expected, Is.EqualTo(priceOfRoom));
 }
예제 #2
0
 public void Book(Room room)
 {
     _canDisplayRoomPrices.DisplayPrice(room.Price());
 }