Esempio n. 1
0
        public async Task SystemAsync_successfully_returns_a_system()
        {
            LatestUniverseEndpoints internalLatestUniverse = new LatestUniverseEndpoints(string.Empty, true);

            V4UniverseSystem returnModel = await internalLatestUniverse.SystemAsync(int.MinValue);

            Assert.NotNull(returnModel);
            Assert.Equal(20000001, returnModel.ConstellationId);
            Assert.Equal("Akpivem", returnModel.Name);
            Assert.Equal(2, returnModel.Planets.Count);
            Assert.Equal(1, returnModel.Planets[0].Moons.Count);
            Assert.Equal(40000042, returnModel.Planets[0].Moons[0]);
            Assert.Equal(40000041, returnModel.Planets[0].PlanetId);
            Assert.Equal(40000043, returnModel.Planets[1].PlanetId);
            Assert.Equal(-91174141133075340, returnModel.Position.X);
            Assert.Equal(43938227486247170, returnModel.Position.Y);
            Assert.Equal(-56482824383339900, returnModel.Position.Z);
            Assert.Equal("B", returnModel.SecurityClass);
            Assert.Equal(0.8462923765f, returnModel.SecurityStatus);
            Assert.Equal(40000040, returnModel.StarId);
            Assert.Equal(1, returnModel.Stargates.Count);
            Assert.Equal(50000342, returnModel.Stargates[0]);
            Assert.Equal(30000003, returnModel.SystemId);
        }