Пример #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;
 }
Пример #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;
 }
Пример #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;
        }
Пример #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;
        }