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); }
public void SetUp() { _reservationsRepository = new ReservationsRepository(); _sut = new VacantRoomsDenormalizer(_reservationsRepository); }