Пример #1
0
        public async Task CanList_CanAccess_ApiKey_Collections_List()
        {
            using (var client = new M2XClient(_masterKey))
            {
                var result = await client.Collections();

                Assert.IsNotNull(result);
                Assert.IsFalse(result.Error);
                Assert.IsFalse(result.ServerError);
                Assert.IsNull(result.WebError);
                Assert.IsFalse(string.IsNullOrWhiteSpace(result.Raw));
                ProcessCollectionsSearchResult(result.Raw, false);
            }
        }