C# 클래스 MyTested.AspNetCore.Mvc.HttpRequestBuilderAuthenticationExtensions

Contains authentication extension methods for IHttpRequestBuilder.
파일 보기 프로젝트 열기: ivaylokenov/MyTested.AspNetCore.Mvc

공개 메소드들

메소드 설명
WithAuthenticatedUser ( this httpRequestBuilder ) : IAndHttpRequestBuilder

Sets default authenticated Microsoft.AspNetCore.Http.HttpContext.User to the built request with "TestId" identifier and "TestUser" username.

WithAuthenticatedUser ( this httpRequestBuilder, Action userBuilder ) : IAndHttpRequestBuilder

Sets custom authenticated Microsoft.AspNetCore.Http.HttpContext.User to the built request using the provided user builder.

메소드 상세

WithAuthenticatedUser() 공개 정적인 메소드

Sets default authenticated Microsoft.AspNetCore.Http.HttpContext.User to the built request with "TestId" identifier and "TestUser" username.
public static WithAuthenticatedUser ( this httpRequestBuilder ) : IAndHttpRequestBuilder
httpRequestBuilder this Instance of type.
리턴 IAndHttpRequestBuilder

WithAuthenticatedUser() 공개 정적인 메소드

Sets custom authenticated Microsoft.AspNetCore.Http.HttpContext.User to the built request using the provided user builder.
public static WithAuthenticatedUser ( this httpRequestBuilder, Action userBuilder ) : IAndHttpRequestBuilder
httpRequestBuilder this Instance of type.
userBuilder Action Action setting the by using .
리턴 IAndHttpRequestBuilder