public WeatherControlSystem(SolarSystem.SolarSystem solarSystem, int decimalPresicion) { if (decimalPresicion < 0) { throw new System.ArgumentException(nameof(decimalPresicion)); } if (solarSystem == null || solarSystem.Planets.Count != 3) { throw new System.ArgumentException(nameof(solarSystem)); } this.SolarSystem = solarSystem; this.DecimalPresicion = decimalPresicion; }
public WeatherControlSystem(SolarSystem.SolarSystem solarSystem) : this(solarSystem, 2) { }