From 55c649b1196b7c3b7ff78d562c9d2bdc8e9485fd Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Wed, 18 Oct 2017 18:05:51 +0300 Subject: [PATCH] change default values for Stores list --- Retailcrm/Versions/V3/Stores.cs | 2 +- RetailcrmUnitTest/V3/StoresTest.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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));