diff --git a/Retailcrm/Versions/V3/Stores.cs b/Retailcrm/Versions/V3/Stores.cs index 829c48f..e3f4866 100644 --- a/Retailcrm/Versions/V3/Stores.cs +++ b/Retailcrm/Versions/V3/Stores.cs @@ -13,7 +13,7 @@ /// /// /// - public Response StoreInventoriesGet(Dictionary filter = null, int page = 0, int limit = 0) + public Response StoreInventoriesGet(Dictionary filter = null, int page = 1, int limit = 20) { Dictionary parameters = new Dictionary(); diff --git a/RetailcrmUnitTest/V3/StoresTest.cs b/RetailcrmUnitTest/V3/StoresTest.cs index 92e0b56..5df8f2e 100644 --- a/RetailcrmUnitTest/V3/StoresTest.cs +++ b/RetailcrmUnitTest/V3/StoresTest.cs @@ -4,6 +4,7 @@ using System.Collections.Generic; using System.Collections.Specialized; using System.Configuration; + using System.Diagnostics; using Microsoft.VisualStudio.TestTools.UnitTesting; using Retailcrm; using Retailcrm.Versions.V3; @@ -88,6 +89,8 @@ Response response = _client.StoreInventoriesGet(filter, 1, 50); + Debug.WriteLine(response.GetRawResponse()); + Assert.IsTrue(response.IsSuccessfull()); Assert.IsTrue(response.GetStatusCode() == 200); Assert.IsInstanceOfType(response, typeof(Response));