Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }