internal EntityConverter(Assembly assembly, IPropertyHelper propertyHelper) { TypeDescriptor.AddAttributes(typeof(inRiver.Remoting.Objects.LocaleString), new TypeConverterAttribute(typeof(LocaleStringConverter))); _assembly = assembly; _propertyHelper = propertyHelper; }
public CustomPropertyDescriptor(string name, Attribute[] attributes, IPropertyHelper helper, ICustomTypeDescriptor typeDesc) : base(name, attributes) { this.CatchSetValue = true; this.ReadOnly = null; this.Helper = helper; this.typeDesc = typeDesc; this.Descriptor = null; }
public MultipartMediaTypeFormatter([NotNull] MediaTypeFormatterCollection mediaTypeFormatterCollection, [NotNull] IPropertyHelper propertyHelper) { if (mediaTypeFormatterCollection == null) throw new ArgumentNullException(nameof(mediaTypeFormatterCollection)); if (propertyHelper == null) throw new ArgumentNullException(nameof(propertyHelper)); _mediaTypeFormatterCollection = mediaTypeFormatterCollection; _propertyHelper = propertyHelper; SupportedMediaTypes.Add(new MediaTypeHeaderValue("multipart/form-data")); }
public BaseFactory() { _createdObjects = new List <object>(); _loader = new LoaderHelper(this); _propertyHelper = new PropertyHelper(); _constructorHelper = new ConstructorHelper(); _costructors = new Constructors(); _properties = new Properties(_propertyHelper); _postCreationActions = new PostCreationActions(); }
public override void Context() { _propertyHelper = mock <IPropertyHelper>(); _resultSetter = mock <IResultSetter>(); _call = mock <ICall>(); _propertyGetter = mock <ICall>(); var settersWithMultipleArgsLikeIndexersHaveSetValueAsLastInArray = new[] { new object(), new object(), _setValue }; _call.stub(x => x.GetArguments()).Return(settersWithMultipleArgsLikeIndexersHaveSetValueAsLastInArray); _propertyHelper.stub(x => x.CreateCallToPropertyGetterFromSetterCall(_call)).Return(_propertyGetter); }
public RouteFactory(SequenceNumberGenerator sequenceNumberGenerator, IThreadLocalContext threadLocalContext, ICallSpecificationFactory callSpecificationFactory, IReceivedCallsExceptionThrower receivedCallsExceptionThrower, IPropertyHelper propertyHelper, IDefaultForType defaultForType) { _sequenceNumberGenerator = sequenceNumberGenerator; _threadLocalContext = threadLocalContext; _callSpecificationFactory = callSpecificationFactory; _receivedCallsExceptionThrower = receivedCallsExceptionThrower; _propertyHelper = propertyHelper; _defaultForType = defaultForType; }
public RouteFactory(SequenceNumberGenerator sequenceNumberGenerator, IThreadLocalContext threadLocalContext, ICallSpecificationFactory callSpecificationFactory, IReceivedCallsExceptionThrower receivedCallsExceptionThrower, IPropertyHelper propertyHelper, IDefaultForType defaultForType) { _sequenceNumberGenerator = sequenceNumberGenerator ?? throw new ArgumentNullException(nameof(sequenceNumberGenerator)); _threadLocalContext = threadLocalContext ?? throw new ArgumentNullException(nameof(threadLocalContext)); _callSpecificationFactory = callSpecificationFactory ?? throw new ArgumentNullException(nameof(callSpecificationFactory)); _receivedCallsExceptionThrower = receivedCallsExceptionThrower ?? throw new ArgumentNullException(nameof(receivedCallsExceptionThrower)); _propertyHelper = propertyHelper ?? throw new ArgumentNullException(nameof(propertyHelper)); _defaultForType = defaultForType ?? throw new ArgumentNullException(nameof(defaultForType)); }
public AutoPropertiesSetter([NotNull] IAttributesReader attributesReader, [NotNull] IResolver resolver, [NotNull] IPropertyHelper propertyHelper, [NotNull] ICacherFactory cacherFactory) { if (attributesReader == null) throw new ArgumentNullException(nameof(attributesReader)); if (resolver == null) throw new ArgumentNullException(nameof(resolver)); if (propertyHelper == null) throw new ArgumentNullException(nameof(propertyHelper)); if (cacherFactory == null) throw new ArgumentNullException(nameof(cacherFactory)); _attributesReader = attributesReader; _resolver = resolver; _propertyHelper = propertyHelper; _cacherFactory = cacherFactory; }
public CustomPropertyDescriptor(PropertyDescriptor propertyDescriptor, IPropertyHelper helper, ICustomTypeDescriptor typeDesc) : base(propertyDescriptor) { this.CatchSetValue = true; this.ReadOnly = null; this.Helper = helper; this.typeDesc = typeDesc; this.Descriptor = propertyDescriptor; if (AllowBoolEditor && (this.PropertyType == typeof(bool))) { this.AttributeArray = new List <Attribute>(this.AttributeArray) { new TypeConverterAttribute(typeof(BooleanTypeConverter)) }.ToArray(); } }
public void SetUp() { _helper = new PropertyHelper<Address>(); }
public JwtAuthorizedMSController(IService <TSDO> service, IMapper mapper, IPropertyHelper <TModel> propertyHelper) : base(service, mapper, propertyHelper) { }
public PropertySetterHandler(IPropertyHelper propertyHelper, IResultSetter resultSetter) { _propertyHelper = propertyHelper; _resultSetter = resultSetter; }
public PropertySetterHandler(IPropertyHelper propertyHelper, IConfigureCall configureCall) { _propertyHelper = propertyHelper; ConfigureCall = configureCall; }
public MSController(IService <TSDO> service, IMapper mapper, IPropertyHelper <TModel> propertyHelper) { _service = service; Mapper = mapper; PropertyHelper = propertyHelper; }
public DynamoDbResourceQuerablePolicy(IPropertyHelper <TDTO> propertyHelper) : base(propertyHelper) { }
public Properties(IPropertyHelper propertyHelper) { _propertyHelper = propertyHelper; }
public JwtAuthorizedMSQuerableController(IQuerableService <TServiceQuery, TSDO> service, IMapper mapper, IPropertyHelper <TModel> propertyHelper) : base(service: service, mapper: mapper, propertyHelper: propertyHelper) { }
public DynamoDbResourcePolicy(IPropertyHelper <TDTO> propertyHelper) { PropertyHelper = propertyHelper; }