public void GetPrice(string setCode, string number) { var client = new PriceClient(); var sid = client.DownloadSid(setCode, number); Assert.That(sid, Is.Not.Null); var result = client.DownloadPrice(sid); Assert.That(result, Is.Not.Null); Assert.That(result.Mid, Is.Not.Null); Assert.That(result.Mid.Value, Is.GreaterThan(0)); }
public void GetPrice(string setCode, string name) { LoadCards(); var card = Repo.SetsByCode[setCode].CardsByName[name].First(); var client = new PriceClient(); var sid = client.DownloadSid(card); Assert.That(sid, Is.Not.Null); var result = client.DownloadPrice(sid.Sid); Assert.That(result, Is.Not.Null); Assert.That(result.Mid, Is.Not.Null); Assert.That(result.Mid.Value, Is.GreaterThan(0)); Assert.That(result.Low, Is.Not.Null); Assert.That(result.Low.Value, Is.GreaterThan(0)); Assert.That(result.High, Is.Not.Null); Assert.That(result.High.Value, Is.GreaterThan(0)); }