コード例 #1
0
        public async Task UpdateItemsInBulk()
        {
            var stream = GetRequestStub("V2.requestStub.itemFeed");
            var result = await itemApi.BulkItemsUpdate(stream);

            Assert.IsType <FeedAcknowledgement>(result);
            Assert.NotEmpty(result.FeedId);
        }
コード例 #2
0
 public async Task UploadNewItems()
 {
     var assembly = typeof(ItemEndpointTests).GetTypeInfo().Assembly;
     var assemblyName = assembly.GetName().Name;
     using (var stream = assembly.GetManifestResourceStream(assemblyName + ".V3.requestStub.itemFeed.xml"))
     {
         var result = await itemApi.BulkItemsUpdate(stream);
         Assert.IsType<FeedAcknowledgement>(result);
         Assert.True(result.FeedId.Length > 0);
     }
 }