Example #1
0
        public void GetFeeByIdSuccessfull()
        {
            var content = File.ReadAllText("../../Fixtures/fees_get_by_id.json");
            var client  = GetMockClient(content);

            var          repo = new FeeRepository(client.Object);
            const string id   = "79116c9f-d750-4faa-85c7-b7da36f23b38";
            var          fee  = repo.GetFeeById(id);

            Assert.AreEqual(id, fee.Id);
        }
        public void GetFeeByIdSuccessfull()
        {
            var content = File.ReadAllText("../../../Fixtures/fees_get_by_id.json");
            var client  = GetMockClient(content);

            var          repo     = new FeeRepository(client.Object);
            const string id       = "79116c9f-d750-4faa-85c7-b7da36f23b38";
            var          response = repo.GetFeeById(id);
            var          fee      = JsonConvert.DeserializeObject <IDictionary <string, object> >(JsonConvert.SerializeObject(response.Values.First()));

            Assert.AreEqual(id, (string)fee["id"]);
        }