C# 클래스 NuGetGallery.FunctionalTests.AssertAndValidationHelper

파일 보기 프로젝트 열기: projectkudu/NuGetGallery 1 사용 예제들

공개 메소드들

메소드 설명
DownloadPackageAndVerify ( string packageId, string version = "1.0.0" ) : void

Downloads a package to local folder and see if the download is successful. Used to individual tests which extend the download scenarios.

GetDefaultExtractHiddenFields ( ) : ExtractHiddenFields
GetHttpRequestForUrl ( string url ) : WebTestRequest

Returns a WebRequest for the given Url.

GetLogOffGetRequest ( ) : WebTestRequest

Returns the GET WebRequest for Log Off.

GetLogonGetRequest ( ) : WebTestRequest

Returns the GET WebRequest for logon.

GetLogonPostRequest ( WebTest test, string accountName = null, string password = null ) : WebTestRequest

Returns the POST WebRequest for logon with appropriate form parameters set. Individual WebTests can use this.

GetUploadPostRequestForPackage ( WebTest test, string packageFullPath ) : WebTestRequest

Returns the POST WebRequest for logon with appropriate form parameters set. Individual WebTests can use this.

GetValidationRuleForFindText ( string findText, bool passIfTextFound = true ) : ValidationRuleFindText
GetValidationRuleForHtmlTagInnerText ( string tagName, string attributeName, string attributeValue, string innerText ) : ValidateHtmlTagInnerText
GetVerifyPackagePostRequestForPackage ( WebTest test, string packageId, string packageVersion ) : WebTestRequest

Returns the POST WebRequest for logon with appropriate form parameters set. Individual WebTests can use this.

UploadNewPackageAndVerify ( string packageId, string version = "1.0.0" ) : void

Creates a package with the specified Id and Version and uploads it and checks if the upload has suceeded. This will be used by test classes which tests scenarios on top of upload.

메소드 상세

DownloadPackageAndVerify() 공개 정적인 메소드

Downloads a package to local folder and see if the download is successful. Used to individual tests which extend the download scenarios.
public static DownloadPackageAndVerify ( string packageId, string version = "1.0.0" ) : void
packageId string
version string
리턴 void

GetDefaultExtractHiddenFields() 공개 정적인 메소드

public static GetDefaultExtractHiddenFields ( ) : ExtractHiddenFields
리턴 ExtractHiddenFields

GetHttpRequestForUrl() 공개 정적인 메소드

Returns a WebRequest for the given Url.
public static GetHttpRequestForUrl ( string url ) : WebTestRequest
url string
리턴 WebTestRequest

GetLogOffGetRequest() 공개 정적인 메소드

Returns the GET WebRequest for Log Off.
public static GetLogOffGetRequest ( ) : WebTestRequest
리턴 WebTestRequest

GetLogonGetRequest() 공개 정적인 메소드

Returns the GET WebRequest for logon.
public static GetLogonGetRequest ( ) : WebTestRequest
리턴 WebTestRequest

GetLogonPostRequest() 공개 정적인 메소드

Returns the POST WebRequest for logon with appropriate form parameters set. Individual WebTests can use this.
public static GetLogonPostRequest ( WebTest test, string accountName = null, string password = null ) : WebTestRequest
test WebTest
accountName string
password string
리턴 WebTestRequest

GetUploadPostRequestForPackage() 공개 정적인 메소드

Returns the POST WebRequest for logon with appropriate form parameters set. Individual WebTests can use this.
public static GetUploadPostRequestForPackage ( WebTest test, string packageFullPath ) : WebTestRequest
test WebTest
packageFullPath string
리턴 WebTestRequest

GetValidationRuleForFindText() 공개 정적인 메소드

public static GetValidationRuleForFindText ( string findText, bool passIfTextFound = true ) : ValidationRuleFindText
findText string
passIfTextFound bool
리턴 ValidationRuleFindText

GetValidationRuleForHtmlTagInnerText() 공개 정적인 메소드

public static GetValidationRuleForHtmlTagInnerText ( string tagName, string attributeName, string attributeValue, string innerText ) : ValidateHtmlTagInnerText
tagName string
attributeName string
attributeValue string
innerText string
리턴 ValidateHtmlTagInnerText

GetVerifyPackagePostRequestForPackage() 공개 정적인 메소드

Returns the POST WebRequest for logon with appropriate form parameters set. Individual WebTests can use this.
public static GetVerifyPackagePostRequestForPackage ( WebTest test, string packageId, string packageVersion ) : WebTestRequest
test WebTest
packageId string
packageVersion string
리턴 WebTestRequest

UploadNewPackageAndVerify() 공개 정적인 메소드

Creates a package with the specified Id and Version and uploads it and checks if the upload has suceeded. This will be used by test classes which tests scenarios on top of upload.
public static UploadNewPackageAndVerify ( string packageId, string version = "1.0.0" ) : void
packageId string
version string
리턴 void