C# Class NuGetGallery.FunctionalTests.PackageCreationHelper

This class provides the helper methods to create different types of packages
Inheritance: NuGetGallery.FunctionalTests.HelperBase
Show file Open project: NuGet/NuGetGallery Class Usage Examples

Public Methods

Method Description
CreateGalleryTestBombPackage ( string packageName, string version = "1.0.0" ) : Task

Creates a package which will grow up to a huge size when extracted.

CreatePackage ( string packageName, string version = "1.0.0", string minClientVersion = null, string title = null, string tags = null, string description = null, string licenseUrl = null, string dependencies = null ) : Task

Creates a package given the package name and version.

CreatePackageWithMinClientVersion ( string packageName, string version, string minClientVersion ) : Task

Creates a package with the specified minclient version.

CreatePackageWithTargetFramework ( string packageName, string packageVersion, string frameworkVersion ) : Task

Creates a package with the specified framework version folder.

CreateWebMatrixCuratedPackage ( string packageName, string version = "1.0.0" ) : Task

Creates a windows 8 curated package given the package name and version.

CreateWindows8CuratedPackage ( string packageName, string version = "1.0.0" ) : Task

Creates a windows 8 curated package given the package name and version.

PackageCreationHelper ( ) : System
PackageCreationHelper ( ITestOutputHelper testOutputHelper ) : System

Private Methods

Method Description
AddContent ( string nuspecFileDir ) : void

Adds default contents dir in the nuspec file location.

AddContent ( string nuspecFileDir, string frameworkVersion ) : void

Adds default contents dir with framework subfolder in the nuspec file location.

AddLib ( string nuspecFileDir ) : void

Adds default Lib dir by adding a codedom generated assembly.

AddLib ( string nuspecFileDir, string frameworkVersion ) : void

Adds default Lib dir and framework subfolder by adding a codedom generated assembly.

CreatePackageInternal ( string nuspecFileFullPath ) : Task
CreatePackageWithTargetFrameworkInternal ( string nuspecFileFullPath, string frameworkVersion ) : Task
WeaponizePackage ( string packageFullPath ) : void

Method Details

CreateGalleryTestBombPackage() public method

Creates a package which will grow up to a huge size when extracted.
public CreateGalleryTestBombPackage ( string packageName, string version = "1.0.0" ) : Task
packageName string
version string
return Task

CreatePackage() public method

Creates a package given the package name and version.
public CreatePackage ( string packageName, string version = "1.0.0", string minClientVersion = null, string title = null, string tags = null, string description = null, string licenseUrl = null, string dependencies = null ) : Task
packageName string
version string
minClientVersion string
title string
tags string
description string
licenseUrl string
dependencies string
return Task

CreatePackageWithMinClientVersion() public method

Creates a package with the specified minclient version.
public CreatePackageWithMinClientVersion ( string packageName, string version, string minClientVersion ) : Task
packageName string
version string
minClientVersion string
return Task

CreatePackageWithTargetFramework() public method

Creates a package with the specified framework version folder.
public CreatePackageWithTargetFramework ( string packageName, string packageVersion, string frameworkVersion ) : Task
packageName string
packageVersion string
frameworkVersion string
return Task

CreateWebMatrixCuratedPackage() public method

Creates a windows 8 curated package given the package name and version.
public CreateWebMatrixCuratedPackage ( string packageName, string version = "1.0.0" ) : Task
packageName string
version string
return Task

CreateWindows8CuratedPackage() public method

Creates a windows 8 curated package given the package name and version.
public CreateWindows8CuratedPackage ( string packageName, string version = "1.0.0" ) : Task
packageName string
version string
return Task

PackageCreationHelper() public method

public PackageCreationHelper ( ) : System
return System

PackageCreationHelper() public method

public PackageCreationHelper ( ITestOutputHelper testOutputHelper ) : System
testOutputHelper ITestOutputHelper
return System