public SolarSystemFactory(long id, string name, Region region) { if (string.IsNullOrEmpty(name)) { throw new ArgumentNullException("name"); } if (id == 0L) { throw new ArgumentOutOfRangeException("id"); } region.ThrowIfNull(nameof(region)); ID = id; Name = name; Position = Point3.ORIGIN; Region = region; radius = Util.AUToMeters(1.0); security = 0.0; }