change default values for Stores list

This commit is contained in:
Alex Lushpai 2017-10-18 18:05:51 +03:00
parent f9f688c209
commit 55c649b119
2 changed files with 4 additions and 1 deletions

View file

@ -13,7 +13,7 @@
/// <param name="page"></param>
/// <param name="limit"></param>
/// <returns></returns>
public Response StoreInventoriesGet(Dictionary<string, object> filter = null, int page = 0, int limit = 0)
public Response StoreInventoriesGet(Dictionary<string, object> filter = null, int page = 1, int limit = 20)
{
Dictionary<string, object> parameters = new Dictionary<string, object>();

View file

@ -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));