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); }
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}"); }