Esempio n. 1
0
            public async Task FailGetSystemNonExistent()
            {
                var response = await EdsmAPI.GetSystemsInRadius("sdajasd");

                response.Dump();
                Assert.IsNull(response.Data);
            }
Esempio n. 2
0
            public async Task GetRadiusBySystemName()
            {
                var response = await EdsmAPI.GetSystemsInRadius("Colonia");

                response.Dump();
                Assert.IsNotNull(response.Data);
                Assert.Greater(response.Data.entries.Length, 0);
            }
Esempio n. 3
0
            public async Task GetRadiusByCoordinates()
            {
                var response = await EdsmAPI.GetSystemsInRadius(null, new Orcabot.Types.Coordinate {
                    X = 120, Y = 1337, Z = 420
                });

                response.Dump();
                Assert.IsNotNull(response.Data);
                Assert.Greater(response.Data.entries.Length, 0);
            }