示例#1
0
        public async Task MapAsync_successfully_returns_a_list_of_Map()
        {
            LatestSovereigntyEndpoints internalLatestSovereignty = new LatestSovereigntyEndpoints(string.Empty, true);

            IList <V1SovereigntyMap> response = await internalLatestSovereignty.MapAsync();

            Assert.Equal(1, response.Count);
            Assert.Equal(500001, response.First().FactionId);
            Assert.Equal(30045334, response.First().SystemId);
        }
示例#2
0
        public async Task StructuresAsync_successfully_returns_a_list_of_Structures()
        {
            LatestSovereigntyEndpoints internalLatestSovereignty = new LatestSovereigntyEndpoints(string.Empty, true);

            IList <V1SovereigntyStructures> response = await internalLatestSovereignty.StructuresAsync();

            Assert.Equal(1, response.Count);
            Assert.Equal(498125261, response.First().AllianceId);
            Assert.Equal(30000570, response.First().SolarSystemId);
            Assert.Equal(1018253388776, response.First().StructureId);
            Assert.Equal(32226, response.First().StructureTypeId);
            Assert.Equal(2, response.First().VulnerabilityOccupancyLevel);
            Assert.Equal(new DateTime(2016, 10, 29, 5, 30, 0), response.First().VulnerableEndTime);
            Assert.Equal(new DateTime(2016, 10, 28, 20, 30, 0), response.First().VulnerableStartTime);
        }
示例#3
0
        public async Task CampaignsAsync_successfully_returns_a_list_of_Campaigns()
        {
            LatestSovereigntyEndpoints internalLatestSovereignty = new LatestSovereigntyEndpoints(string.Empty, true);

            IList <V1SovereigntyCampaigns> response = await internalLatestSovereignty.CampaignsAsync();

            Assert.Equal(1, response.Count);
            Assert.Equal(0.4f, response.First().AttackersScore);
            Assert.Equal(20000125, response.First().ConstellationId);
            Assert.Equal(1695357456, response.First().DefenderId);
            Assert.Equal(0.6f, response.First().DefenderScore);
            Assert.Equal(V1SovereigntyCampaignsEventType.StationDefense, response.First().EventType);
            Assert.Equal(30000856, response.First().SolarSystemId);
            Assert.Equal(new DateTime(2016, 10, 29, 14, 34, 40), response.First().StartTime);
            Assert.Equal(61001096, response.First().StructureId);
        }