C# Class Security.Specs.CheckPermissionsSpecs.SecuritySpecsContext

Inheritance: SpecUnit.ContextSpecification
Show file Open project: derickbailey/Security

Protected Properties

Property Type Description
PermissionRepository IPermissionRepository
_action string
_user Security.TestModel.User

Protected Methods

Method Description
GetPermission ( bool isAllowed, User user, string actionName ) : Permission
GetSecurityService ( ) : IAuthorizationService
SharedContext ( ) : void

Method Details

GetPermission() protected method

protected GetPermission ( bool isAllowed, User user, string actionName ) : Permission
isAllowed bool
user Security.TestModel.User
actionName string
return Permission

GetSecurityService() protected method

protected GetSecurityService ( ) : IAuthorizationService
return IAuthorizationService

SharedContext() protected method

protected SharedContext ( ) : void
return void

Property Details

PermissionRepository protected property

protected IPermissionRepository PermissionRepository
return IPermissionRepository

_action protected property

protected string _action
return string

_user protected property

protected User,Security.TestModel _user
return Security.TestModel.User