Component evidence
Resolves specimen requests for reflected members by extracting their underlying type and delegating value creation to an inner builder. Reuse in AutoFixture customization pipelines for properties, fields, and parameters.
// Source: https://github.com/AutoFixture/AutoFixture | License: MIT
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using AutoFixture.Kernel;
namespace AutoFixture;
/// <summary>
/// If member request (e.g. PropertyInfo, FieldInfo, ParameterInfo) is passed, extracts the member type
/// and uses the inner <see cref="Builder"/> to resolve request value.
/// </summary>
public class UnwrapMemberRequest : ISpecimenBuilder
{
private IRequestMemberTypeResolver _requestMemberTypeResolver = new RequestMemberTypeResolver();
/// <summary>
/// Gets or sets resolver used to extract member type.
/// </summary>
public IRequestMemberTypeResolver MemberTypeResolver
{
get => _requestMemberTypeResolver;
set => _requestMemberTypeResolv
... (truncated -- full source via MCP)