Inheritance: HandlingEventService
コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }