public UploadNewPackageAndVerify ( string packageId, string version = "1.0.0", string minClientVersion = null, string title = null, string tags = null, string description = null, string licenseUrl = null, string dependencies = null ) : Task | ||
packageId | string | |
version | string | |
minClientVersion | string | |
title | string | |
tags | string | |
description | string | |
licenseUrl | string | |
dependencies | string | |
return | Task |
public async Task CheckIfBaseTestPackageExistsAsync() { // Check if the BaseTestPackage exists in current source and if not upload it. // This will be used by the download related tests. try { var clientSdkHelper = new ClientSdkHelper(ConsoleTestOutputHelper.New); if (!clientSdkHelper.CheckIfPackageExistsInSource(Constants.TestPackageId, UrlHelper.V2FeedRootUrl)) { await clientSdkHelper.UploadNewPackageAndVerify(Constants.TestPackageId); } } catch (Exception exception) { var message = string.Format( "The initialization method to pre-upload test package has failed. Hence failing all the tests. Make sure that a package by name {0} exists @ {1} before running tests. Check test run error for details", Constants.TestPackageId, UrlHelper.BaseUrl); throw new InvalidOperationException(message, exception); } }
public async Task CheckIfBaseTestPackageExistsAsync() { // Check if the BaseTestPackage exists in current source and if not upload it. // This will be used by the download related tests. try { var clientSdkHelper = new ClientSdkHelper(ConsoleTestOutputHelper.New); if (!clientSdkHelper.CheckIfPackageExistsInSource(Constants.TestPackageId, UrlHelper.V2FeedRootUrl)) { await clientSdkHelper.UploadNewPackageAndVerify(Constants.TestPackageId); } } catch (Exception exception) { var message = string.Format( "The initialization method to pre-upload test package has failed. Hence failing all the tests. Make sure that a package by name {0} exists @ {1} before running tests. Check test run error for details", Constants.TestPackageId, UrlHelper.BaseUrl); throw new InvalidOperationException(message, exception); } }