public async Task GetPackagesAndNamesForNetflix() { DisplayCatalogHandler displayCatalog = DisplayCatalogHandler.ProductionConfig(); await displayCatalog.QueryDCATAsync("9wzdncrfj3tj"); Assert.True(displayCatalog.IsFound); string xml = await FE3Handler.SyncUpdatesAsync(displayCatalog.ProductListing.Product.DisplaySkuAvailabilities[0].Sku.Properties.FulfillmentData.WuCategoryId); IList <string> RevisionIds = new List <string>(); IList <string> PackageNames = new List <string>(); IList <string> UpdateIDs = new List <string>(); FE3Handler.ProcessUpdateIDs(xml, out RevisionIds, out PackageNames, out UpdateIDs); IList <Uri> FileUris = await FE3Handler.GetFileUrlsAsync(UpdateIDs, RevisionIds); }
public async Task GetPackagesForNetflix() { DisplayCatalogHandler displayCatalog = new DisplayCatalogHandler(DCatEndpoint.Production, new Locale(Market.US, Lang.en, true)); await displayCatalog.QueryDCATAsync("9wzdncrfj3tj"); Assert.True(displayCatalog.IsFound); string xml = await FE3Handler.SyncUpdatesAsync(displayCatalog.ProductListing.Product.DisplaySkuAvailabilities[0].Sku.Properties.FulfillmentData.WuCategoryId); IList <string> RevisionIds = new List <string>(); IList <string> PackageNames = new List <string>(); IList <string> UpdateIDs = new List <string>(); FE3Handler.ProcessUpdateIDs(xml, out RevisionIds, out PackageNames, out UpdateIDs); IList <Uri> FileUris = await FE3Handler.GetFileUrlsAsync(UpdateIDs, RevisionIds); foreach (Uri fileuri in FileUris) { _output.WriteLine($"GetPackagesForNetflix: {fileuri}"); } }