public void Shares_GetDownloadShares_NoFilter_NoSort()
        {
            // ARRANGE
            long            offset = 2, limit = 3;
            IRequestBuilder builder  = new DracoonRequestBuilder(FactoryClients.OAuthMock);
            RestRequest     expected = FactoryRestSharp.RestRequestWithAuth(ApiConfig.ApiGetDownloadShares, Method.GET);

            expected.AddQueryParameter("offset", offset.ToString());
            expected.AddQueryParameter("limit", limit.ToString());

            // ACT
            IRestRequest actual = builder.GetDownloadShares(offset, limit);

            // ASSERT
            Assert.Equal(expected, actual, new RestRequestComparer());
        }
        public void Shares_GetDownloadShares()
        {
            // ARRANGE
            string          fString = "name:cn:name_part", sString = "name:asc";
            long            offset = 2, limit = 3;
            IRequestBuilder builder  = new DracoonRequestBuilder(FactoryClients.OAuthMock);
            RestRequest     expected = FactoryRestSharp.RestRequestWithAuth(ApiConfig.ApiGetDownloadShares, Method.GET);

            expected.AddQueryParameter("filter", fString);
            expected.AddQueryParameter("sort", sString);
            expected.AddQueryParameter("offset", offset.ToString());
            expected.AddQueryParameter("limit", limit.ToString());

            // ACT
            GetDownloadSharesFilter f = new GetDownloadSharesFilter();

            f.AddNameFilter(GetDownloadSharesFilter.Name.Contains("name_part").Build());
            IRestRequest actual = builder.GetDownloadShares(offset, limit, f, SharesSort.Name.Ascending());

            // ASSERT
            Assert.Equal(expected, actual, new RestRequestComparer());
        }