FastMoq
Search Results for

    Show / Hide Table of Contents

    Enum BuiltInTypeResolutionFlags

    Specifies which built-in framework and utility types Mocker may resolve automatically.

    Namespace: FastMoq
    Assembly: FastMoq.Core.dll
    Syntax
    [Flags]
    public enum BuiltInTypeResolutionFlags
    Remarks

    These flags control FastMoq's built-in object creation behavior for well-known types that are commonly needed during unit and integration-style test setup.

    The values can be combined to enable multiple categories at once, or compared against the provided preset values such as StrictCompatibilityDefaults and LenientDefaults.

    Use None to disable all built-in resolutions and require explicit registrations, or use All to enable every built-in category currently supported.

    Fields

    Name Description
    All

    Enables every built-in type resolution category currently supported.

    DbContext

    Enables automatic resolution for database context types.

    FileSystem

    Enables automatic resolution for file system abstractions.

    HttpClient

    Enables automatic resolution for HttpClient instances.

    LenientDefaults

    Enables the lenient preset used for maximum built-in convenience.

    None

    Disables all built-in type resolution.

    StrictCompatibilityDefaults

    Enables the conservative compatibility preset used for stricter legacy behavior.

    Uri

    Enables automatic resolution for Uri values.

    Extension Methods

    TestClassExtensions.GetMemberName<BuiltInTypeResolutionFlags, TValue>(BuiltInTypeResolutionFlags, Expression<Func<BuiltInTypeResolutionFlags, TValue>>)
    TestClassExtensions.GetMember<BuiltInTypeResolutionFlags, TValue>(BuiltInTypeResolutionFlags, Expression<Func<BuiltInTypeResolutionFlags, TValue>>)
    TestClassExtensions.GetProperty<BuiltInTypeResolutionFlags>(BuiltInTypeResolutionFlags, string)
    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-29 03:53 UTC