From a369a70955329b475308c9e4044f09fb0d8e33db Mon Sep 17 00:00:00 2001 From: Doug Dellolio Date: Sun, 10 Dec 2017 14:21:57 -0500 Subject: [PATCH] [Bug] Null ask values (#21) --- .../Products/ProductsOrderBookResponseFixture.cs | 2 +- GDAXClient.Specs/Services/Products/ProductsServiceSpecs.cs | 6 +++--- .../Products/Models/Responses/ProductsOrderBookResponse.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/GDAXClient.Specs/JsonFixtures/Products/ProductsOrderBookResponseFixture.cs b/GDAXClient.Specs/JsonFixtures/Products/ProductsOrderBookResponseFixture.cs index 55ae3ee1..c0e44bc9 100644 --- a/GDAXClient.Specs/JsonFixtures/Products/ProductsOrderBookResponseFixture.cs +++ b/GDAXClient.Specs/JsonFixtures/Products/ProductsOrderBookResponseFixture.cs @@ -10,7 +10,7 @@ public static string Create() 'bids': [ [200, 100, 3], ], - 'ask': [ + 'asks': [ [200, 100, 3], ] }"; diff --git a/GDAXClient.Specs/Services/Products/ProductsServiceSpecs.cs b/GDAXClient.Specs/Services/Products/ProductsServiceSpecs.cs index 3a9a9c0e..ad20df11 100644 --- a/GDAXClient.Specs/Services/Products/ProductsServiceSpecs.cs +++ b/GDAXClient.Specs/Services/Products/ProductsServiceSpecs.cs @@ -86,9 +86,9 @@ class when_getting_a_product_order_book product_order_books_response.Bids.SelectMany(p => p).ShouldContain(200); product_order_books_response.Bids.SelectMany(p => p).ShouldContain(100); product_order_books_response.Bids.SelectMany(p => p).ShouldContain(3); - product_order_books_response.Ask.SelectMany(p => p).ShouldContain(200); - product_order_books_response.Ask.SelectMany(p => p).ShouldContain(100); - product_order_books_response.Ask.SelectMany(p => p).ShouldContain(3); + product_order_books_response.Asks.SelectMany(p => p).ShouldContain(200); + product_order_books_response.Asks.SelectMany(p => p).ShouldContain(100); + product_order_books_response.Asks.SelectMany(p => p).ShouldContain(3); }; } diff --git a/GDAXClient/Services/Products/Models/Responses/ProductsOrderBookResponse.cs b/GDAXClient/Services/Products/Models/Responses/ProductsOrderBookResponse.cs index d2e67633..6658e586 100644 --- a/GDAXClient/Services/Products/Models/Responses/ProductsOrderBookResponse.cs +++ b/GDAXClient/Services/Products/Models/Responses/ProductsOrderBookResponse.cs @@ -8,6 +8,6 @@ public class ProductsOrderBookResponse public IEnumerable> Bids { get; set; } - public IEnumerable> Ask { get; set; } + public IEnumerable> Asks { get; set; } } }