コード例 #1
0
        private static void WireUpRead(IDispatcher dispatcher)
        {
            Repository.RoomType = new RoomTypeRepository();
            var roomsDenormalizer = new RoomTypesDenormalizer(Repository.RoomType);

            dispatcher.RegisterHandler(roomsDenormalizer);

            Repository.Reservations = new ReservationsRepository();
            var availableRoomsDenormalizer = new VacantRoomsDenormalizer(Repository.Reservations);

            dispatcher.RegisterHandler(availableRoomsDenormalizer);
        }
コード例 #2
0
 public void SetUp()
 {
     _reservationsRepository = new ReservationsRepository();
     _sut = new VacantRoomsDenormalizer(_reservationsRepository);
 }