C# 클래스 Gramps.Tests.Core.Helpers.MockPrincipal

Mock the Principal. Used for getting the current user name
상속: IPrincipal
파일 보기 프로젝트 열기: ucdavis/Gramps

공개 메소드들

메소드 설명
IsInRole ( string role ) : bool
MockPrincipal ( string userRoles, string userName = "UserName" ) : System

메소드 상세

IsInRole() 공개 메소드

public IsInRole ( string role ) : bool
role string
리턴 bool

MockPrincipal() 공개 메소드

public MockPrincipal ( string userRoles, string userName = "UserName" ) : System
userRoles string
userName string
리턴 System