Exemplo n.º 1
0
        public void Should_Return_Product(int id)
        {
            var result = client.GetProduct(id);

            Assert.True(result.Success);
            Assert.True(result.Data != null);
            Assert.True(result.Data.Id == id);
        }
Exemplo n.º 2
0
        public float get24Volume() //skip
        {
            var response = _api.GetProduct(_productId);

            if (response.Success)
            {
                return((float)response.Data.Volume24H);
            }
            throw new Exception($"Error: \n{response.Error.Code}\n{response.Error.Message}");
        }