C# Class Serenity.Web.MvcFakes.FakePrincipal

Inheritance: IPrincipal
Mostra file Open project: volkanceylan/Serenity Class Usage Examples

Public Methods

Method Description
FakePrincipal ( IIdentity identity, string roles ) : System.Linq
IsInRole ( string role ) : bool

Method Details

FakePrincipal() public method

public FakePrincipal ( IIdentity identity, string roles ) : System.Linq
identity IIdentity
roles string
return System.Linq

IsInRole() public method

public IsInRole ( string role ) : bool
role string
return bool