Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        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;
        }