FastMoq
Search Results for

    Show / Hide Table of Contents

    Class TestClaimsPrincipalOptions

    Configures the synthetic ClaimsPrincipal created by FastMoq web helpers.

    Inheritance
    object
    TestClaimsPrincipalOptions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: FastMoq.Web
    Assembly: FastMoq.Web.dll
    Syntax
    public sealed class TestClaimsPrincipalOptions

    Properties

    AdditionalClaims

    Gets the additional claims appended after the built-in compatibility claims.

    Declaration
    public IList<Claim> AdditionalClaims { get; }
    Property Value
    Type Description
    IList<Claim>

    AuthenticationType

    Gets or sets the authentication type used by the generated identity.

    Declaration
    public string AuthenticationType { get; set; }
    Property Value
    Type Description
    string

    DisplayName

    Gets or sets the value used for display-name style claims.

    Declaration
    public string? DisplayName { get; set; }
    Property Value
    Type Description
    string

    Email

    Gets or sets the value used for email-style claims.

    Declaration
    public string? Email { get; set; }
    Property Value
    Type Description
    string

    IncludeDefaultIdentityClaims

    Gets or sets a value indicating whether the built-in compatibility claims should be added.

    Declaration
    public bool IncludeDefaultIdentityClaims { get; set; }
    Property Value
    Type Description
    bool

    Name

    Gets or sets the value used for Name.

    Declaration
    public string? Name { get; set; }
    Property Value
    Type Description
    string

    ObjectId

    Gets or sets the value used for object identifier style claims.

    Declaration
    public string? ObjectId { get; set; }
    Property Value
    Type Description
    string

    PreferredUserName

    Gets or sets the value used for preferred username and UPN-style claims.

    Declaration
    public string? PreferredUserName { get; set; }
    Property Value
    Type Description
    string

    TenantId

    Gets or sets the value used for tenant identifier style claims.

    Declaration
    public string? TenantId { get; set; }
    Property Value
    Type Description
    string

    Extension Methods

    ObjectExtensions.RaiseIfNull<T>(T?, string?, string?, int?, string?)
    TestClassExtensions.GetFieldValue<TObject>(TObject, string, TObject?)
    TestClassExtensions.GetField<TObject>(TObject, string)
    TestClassExtensions.GetMemberName<T, TValue>(T, Expression<Func<T, TValue>>)
    TestClassExtensions.GetMember<T, TValue>(T, Expression<Func<T, TValue>>)
    TestClassExtensions.GetMethodValue<TObject>(TObject, string, object?, params object[])
    TestClassExtensions.GetMethod<TObject>(TObject, string)
    TestClassExtensions.GetPropertyValue<TObject>(TObject, string, object?)
    TestClassExtensions.GetProperty<TObject>(TObject, string)
    TestClassExtensions.SetFieldValue<TObject>(TObject, string, object?)
    TestClassExtensions.SetPropertyValue<TObject>(TObject, string, object?)
    MockerHttpMoqExtensions.SetupHttpMessage(object, Func<HttpResponseMessage>, Expression?, Expression?)
    MockerHttpMoqExtensions.SetupMessageAsync<TMock, TReturn>(object, Expression<Func<TMock, Task<TReturn>>>, Func<TReturn>)
    MockerHttpMoqExtensions.SetupMessageProtectedAsync<TMock, TReturn>(object, string, Func<TReturn>, params object?[]?)
    MockerHttpMoqExtensions.SetupMessageProtected<TMock, TReturn>(object, string, Func<TReturn>, params object?[]?)
    MockerHttpMoqExtensions.SetupMessage<TMock, TReturn>(object, Expression<Func<TMock, TReturn>>, Func<TReturn>)
    TestClassExtensions.GetFieldInfo<TType>(object, string)
    TestClassExtensions.GetFieldValue<T>(object?, FieldInfo)
    TestClassExtensions.GetFieldValue<T, TType>(object, string)
    In this article
    Back to top
    Generated 2026-04-08 12:38 UTC