FastMoq
Search Results for

    Show / Hide Table of Contents

    Enum PropertyStateMode

    Controls whether AddPropertyState<TService>(...) keeps assigned values on the proxy only or also writes them through to the wrapped inner instance.

    Namespace: FastMoq
    Assembly: FastMoq.Core.dll
    Syntax
    public enum PropertyStateMode

    Fields

    Name Description
    ProxyOnly

    Preserve the proxy-backed property value without mutating the wrapped inner instance. Non-property members still forward to the wrapped instance.

    WriteThrough

    Preserve the proxy-backed property value and also assign the same value to the wrapped inner instance. This keeps the original AddPropertyState<TService>(...) behavior.

    Extension Methods

    TestClassExtensions.GetMemberName<PropertyStateMode, TValue>(PropertyStateMode, Expression<Func<PropertyStateMode, TValue>>)
    TestClassExtensions.GetMember<PropertyStateMode, TValue>(PropertyStateMode, Expression<Func<PropertyStateMode, TValue>>)
    TestClassExtensions.GetProperty<PropertyStateMode>(PropertyStateMode, 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