/// <summary> /// If you're wondering why this is useful, it's for unit testing Map. The readers passed in will be dummys. /// </summary> public Map(SolarSystemsReader systemsReader, StationReader stationReader) { solarSystemsByName = systemsReader.SolarSystemsByName; solarSystemsById = systemsReader.SolarSystemsById; stationsById = stationReader.StationsById; regionsById = systemsReader.RegionsById; }
/// <summary> /// If you're wondering why this is useful, it's for unit testing Map. The readers passed in will be dummys. /// </summary> public Map(SolarSystemsReader systemsReader, StationReader stationReader) { solarSystemsByName = systemsReader.SolarSystemsByName; solarSystemsById = systemsReader.SolarSystemsById; stationsById = stationReader.StationsById; regionsById = systemsReader.RegionsById; }
public Map() { SolarSystemsReader systemsReader = new SolarSystemsReader(); solarSystemsByName = systemsReader.SolarSystemsByName; solarSystemsById = systemsReader.SolarSystemsById; regionsById = systemsReader.RegionsById; SolarSystemJumpsReader jumpsReader = new SolarSystemJumpsReader(this); StationReader stationReader = new StationReader(this); stationsById = stationReader.StationsById; }
public Map() { SolarSystemsReader systemsReader = new SolarSystemsReader(); solarSystemsByName = systemsReader.SolarSystemsByName; solarSystemsById = systemsReader.SolarSystemsById; regionsById = systemsReader.RegionsById; SolarSystemJumpsReader jumpsReader = new SolarSystemJumpsReader(this); StationReader stationReader = new StationReader(this); stationsById = stationReader.StationsById; }