Beispiel #1
0
        public void GenerateShipTest()
        {
            var services = new ServiceCollection().AddSingleton(new OracleService().Load()).BuildServiceProvider();

            for (int i = 0; i < 1000; i++)
            {
                try
                {
                    var ship = Starship.GenerateShip(services, SpaceRegion.Outlands, $"ship-{i}", 0);
                    ship.AddMission();

                    ship.GetEmbedBuilder();
                }
                catch (Exception)
                {
                    Console.WriteLine(i);
                    throw;
                }
            }
        }