C# 클래스 Test.CustomerExample.BO.AuthorisationStub

This class is a very simple stub implementation of IBusinessObjectAuthorisation. It is not intended to represent how a read authorisation policy would be implemented by is instead used only for testing.
상속: IBusinessObjectAuthorisation
파일 보기 프로젝트 열기: Chillisoft/habanero 1 사용 예제들

공개 메소드들

메소드 설명
AddAuthorisedRole ( string role, BusinessObjectActions actionToPerform ) : void

This is a public method to be used for setting up tests.

IsAuthorised ( BusinessObjectActions actionToPerform ) : bool

Whether the user is authorised to perform this action or not. This is an implementation of the IBusinessObjectAuthorisation method.

메소드 상세

AddAuthorisedRole() 공개 메소드

This is a public method to be used for setting up tests.
public AddAuthorisedRole ( string role, BusinessObjectActions actionToPerform ) : void
role string the role that the user must be a member of
actionToPerform BusinessObjectActions The action that can be performed by a user of this role
리턴 void

IsAuthorised() 공개 메소드

Whether the user is authorised to perform this action or not. This is an implementation of the IBusinessObjectAuthorisation method.
public IsAuthorised ( BusinessObjectActions actionToPerform ) : bool
actionToPerform BusinessObjectActions
리턴 bool