Exemplo n.º 1
0
        public void StationData()
        {
            ConquerableStationList stationList = EveApi.GetConquerableStationList();

            Assert.AreEqual(233, stationList.ConquerableStations.Length);
            Assert.AreEqual(60014926, stationList.ConquerableStations[0].StationId);
            Assert.AreEqual("The Alamo", stationList.ConquerableStations[0].StationName);
            Assert.AreEqual(12295, stationList.ConquerableStations[0].StationTypeId);
        }
Exemplo n.º 2
0
        public static void ConquerableStationListExample()
        {
            ConquerableStationList csl = EveApi.GetConquerableStationList();

            foreach (ConquerableStationList.ConquerableStation station in csl.ConquerableStations)
            {
                Console.WriteLine("Station Name: {0} Corporation Name: {1}", station.StationName, station.CorporationName);
            }
        }
Exemplo n.º 3
0
        public void StationPersist()
        {
            ResponseCache.Clear();

            ConquerableStationList stationList = EveApi.GetConquerableStationList();

            ResponseCache.Save("ResponseCache.xml");
            ResponseCache.Clear();
            ResponseCache.Load("ResponseCache.xml");
            ConquerableStationList cachedstationList = EveApi.GetConquerableStationList();

            Assert.AreEqual(stationList.CachedUntilLocal, cachedstationList.CachedUntilLocal);


            for (int i = 0; i < stationList.ConquerableStations.Length; i++)
            {
                Assert.AreEqual(stationList.ConquerableStations[i].CorporationId, cachedstationList.ConquerableStations[i].CorporationId);
                Assert.AreEqual(stationList.ConquerableStations[i].CorporationName, cachedstationList.ConquerableStations[i].CorporationName);
                Assert.AreEqual(stationList.ConquerableStations[i].SolarSystemId, cachedstationList.ConquerableStations[i].SolarSystemId);
            }
        }