protected void setUp() { cargoRepository = MockRepository.GenerateMock<CargoRepository>(); voyageRepository = MockRepository.GenerateMock<VoyageRepository>(); handlingEventRepository = MockRepository.GenerateMock<HandlingEventRepository>(); locationRepository = MockRepository.GenerateMock<LocationRepository>(); systemEvents = MockRepository.GenerateMock<SystemEvents>(); HandlingEventFactory handlingEventFactory = new HandlingEventFactory(cargoRepository, voyageRepository, locationRepository); service = new HandlingEventServiceImpl(handlingEventRepository, systemEvents, handlingEventFactory); }
protected void setUp() { cargoRepository = MockRepository.GenerateMock <CargoRepository>(); voyageRepository = MockRepository.GenerateMock <VoyageRepository>(); handlingEventRepository = MockRepository.GenerateMock <HandlingEventRepository>(); locationRepository = MockRepository.GenerateMock <LocationRepository>(); systemEvents = MockRepository.GenerateMock <SystemEvents>(); HandlingEventFactory handlingEventFactory = new HandlingEventFactory(cargoRepository, voyageRepository, locationRepository); service = new HandlingEventServiceImpl(handlingEventRepository, systemEvents, handlingEventFactory); }