Catbert4.Tests.Core.Helpers.MockPrincipal.IsInRole C# (CSharp) Method

IsInRole() public method

public IsInRole ( string role ) : bool
role string
return bool
        public bool IsInRole(string role)
        {
            if (UserRoles.Contains(role))
            {
                return true;
            }
            return false;
        }