コード例 #1
0
 public void setUp()
 {
     systemEvents = MockRepository.GenerateMock<SystemEvents>();
     cargoRepository = new CargoRepositoryInMem();
     handlingEventRepository = new HandlingEventRepositoryInMem();
     locationRepository = new LocationRepositoryInMem();
     voyageRepository = new VoyageRepositoryInMem();
     trackingIdFactory = new TrackingIdFactoryInMem();
     handlingEventFactory = new HandlingEventFactory(cargoRepository, voyageRepository, locationRepository);
     cargoUpdater = new CargoUpdater(systemEvents, cargoRepository, handlingEventRepository);
 }
コード例 #2
0
 public void setUp()
 {
     systemEvents            = MockRepository.GenerateMock <SystemEvents>();
     cargoRepository         = new CargoRepositoryInMem();
     handlingEventRepository = new HandlingEventRepositoryInMem();
     locationRepository      = new LocationRepositoryInMem();
     voyageRepository        = new VoyageRepositoryInMem();
     trackingIdFactory       = new TrackingIdFactoryInMem();
     handlingEventFactory    = new HandlingEventFactory(cargoRepository, voyageRepository, locationRepository);
     cargoUpdater            = new CargoUpdater(systemEvents, cargoRepository, handlingEventRepository);
 }