public EveCentral_Tests() { _api = new EveCentral(); _validOptions = new EveCentralOptions { HourLimit = HourLimit, MinQuantity = MinQty }; _validOptions.Items.Add(TypeId); _validOptions.Regions.Add(RegionId); }
public EveCentral_Tests() { api = EveLib.Create().EveCentral; validOptions = new EveCentralOptions { HourLimit = HourLimit, MinQuantity = MinQty }; validOptions.Types.Add(TypeId); validOptions.Regions.Add(RegionId); invalidOptions = new EveCentralOptions(); }
public void GetMarketStat_ValidRequest_ValidResponse() { var options = new EveCentralOptions { System = 30000142 }; options.Items.Add(34); var res = _api.GetMarketStat(options); var entry = res.Result.First(); Assert.AreEqual(TypeId, entry.TypeId); Assert.AreNotEqual(0, entry.All.Average); Assert.AreNotEqual(0, entry.All.Volume); Assert.AreNotEqual(0, entry.All.Max); Assert.AreNotEqual(0, entry.All.Min); Assert.AreNotEqual(0, entry.All.StdDev); Assert.AreNotEqual(0, entry.All.Median); Assert.AreNotEqual(0, entry.All.Percentile); }