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); }
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); }