public Reservation(Client client, Room room, DayDuration duration) { Client = client; Room = room; SetDuration(duration); Guests = new HashSet<Guest>(); }
public void Create_room() { var room = new Room(); room.SetCapacity(1); room.Quality = RoomQuality.Average; room.Type = RoomType.HotelRoom; room.Features = null; room.Reservations = null; }
public void Cant_create_room_with_non_positive_capacity(int capacity) { var room = new Room(); room.Invoking(y => y.SetCapacity(capacity)) .ShouldThrow<ArgumentOutOfRangeException>(); }