示例#1
0
 internal CompoundValueProvider(
     ValueProviderDictionary valueProviderDictionary,
     HashSet <IKey> autoFillMapping,
     IMemberSorter memberSorter,
     IMetadataResolver metadataResolver,
     IRandom random,
     IList <IInstanceModifier> instanceModifiers,
     IParameterConversionService parameterConversionService,
     IFastReflectionUtility fastReflectionUtility)
 {
     Random = random;
     _valueProviderDictionary = valueProviderDictionary;
     _autoFillMapping         = autoFillMapping;
     _memberSorter            = memberSorter;
     _metadataResolver        = metadataResolver;
     _fastReflectionUtility   = fastReflectionUtility;
     _instanceFactory         = new InstanceFactory(
         this,
         valueProviderDictionary,
         _memberSorter,
         _metadataResolver,
         parameterConversionService,
         fastReflectionUtility);
     _modificationFactory = new ModificationFactory(instanceModifiers, random);
 }
示例#2
0
        internal CompoundValueProviderBuilder(IRandom random, IParameterConversionService parameterConversionService, IFastReflectionUtility fastReflectionUtility)
        {
            _random = random;
            _parameterConversionService = parameterConversionService;
            _fastReflectionUtility      = fastReflectionUtility;
            _valueProviderDictionary    = new ValueProviderDictionary();
            _autoFillMapping            = new HashSet <IKey>();
            _modifierList = new List <IInstanceModifier>();

            _tempContainerCountMapping = new Dictionary <Type, int>();
            _containerIndexMapping     = new Dictionary <IKey, int>();

            _metadataProviderMapping = new Dictionary <IKey, Func <MetadataObjectContext, object> >();
        }
示例#3
0
 public InstanceFactory(
     CompoundValueProvider compoundValueProvider,
     ValueProviderDictionary valueProviderDictionary,
     IMemberSorter memberSorter,
     IMetadataResolver metadataResolver,
     IParameterConversionService parameterConversionService,
     IFastReflectionUtility fastReflectionUtility)
 {
     _compoundValueProvider      = compoundValueProvider;
     _valueProviderDictionary    = valueProviderDictionary;
     _memberSorter               = memberSorter;
     _metadataResolver           = metadataResolver;
     _parameterConversionService = parameterConversionService;
     _fastReflectionUtility      = fastReflectionUtility;
 }