WebApplicationFactoryContentRootAttribute 생성자

정의

WebApplicationFactoryContentRootAttribute의 새 인스턴스를 초기화합니다.

public:
 WebApplicationFactoryContentRootAttribute(System::String ^ key, System::String ^ contentRootPath, System::String ^ contentRootTest, System::String ^ priority);
public WebApplicationFactoryContentRootAttribute (string key, string contentRootPath, string contentRootTest, string priority);
new Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactoryContentRootAttribute : string * string * string * string -> Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactoryContentRootAttribute
Public Sub New (key As String, contentRootPath As String, contentRootTest As String, priority As String)

매개 변수

key
String

WebApplicationFactoryContentRootAttribute의 키입니다. 이 키는 에서 지정된 TEntryPoint 클래스와 일치하도록 테스트 어셈블리의 WebApplicationFactoryContentRootAttribute 인스턴스를 결정하는 데 사용됩니다WebApplicationFactory<TEntryPoint>.

contentRootPath
String

콘텐츠 루트의 경로입니다. 이 경로는 상대 경로 또는 절대 경로일 수 있습니다. 경로가 상대 경로인 경우 경로는 와 결합됩니다. GetCurrentDirectory()

contentRootTest
String

지정된 컨텍스트의 콘텐츠 루트 경로가 올바른지 확인하기 위해 표식으로 사용할 파일입니다.

priority
String

다른 특성에 비해 이 콘텐츠 루트 특성의 우선 순위입니다. 여러 WebApplicationFactoryContentRootAttribute 인스턴스가 동일한 키에 적용되면 로 처리되고 오름차순으로 Parse(String)정렬되고 일치 항목이 발견될 때까지 우선 순위에 적용됩니다.

적용 대상