Пример #1
0
        public void ShowChargeSuccessful()
        {
            var content = File.ReadAllText("../../../Fixtures/charges_show.json");
            var client  = GetMockClient(content);
            var repo    = new ChargeRepository(client.Object);
            var id      = "cb7eafc1-571c-425c-9adc-f56cb585cd68";

            var response = repo.ShowCharge(id);
            var charge   = JsonConvert.DeserializeObject <IDictionary <string, object> >(JsonConvert.SerializeObject(response["charges"]));

            Assert.IsNotNull(charge);
            Assert.AreEqual(id, charge["id"]);
        }