internal EntityConverter(Assembly assembly, IPropertyHelper propertyHelper)
        {
            TypeDescriptor.AddAttributes(typeof(inRiver.Remoting.Objects.LocaleString), new TypeConverterAttribute(typeof(LocaleStringConverter)));

            _assembly       = assembly;
            _propertyHelper = propertyHelper;
        }
示例#2
0
 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"));
 }
示例#4
0
        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();
        }
示例#5
0
            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);
            }
示例#6
0
 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;
 }
示例#7
0
 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));
 }
示例#8
0
 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;
 }
示例#9
0
 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();
     }
 }
示例#10
0
 public void SetUp()
 {
     _helper = new PropertyHelper<Address>();
 }
 public JwtAuthorizedMSController(IService <TSDO> service, IMapper mapper, IPropertyHelper <TModel> propertyHelper)
     : base(service, mapper, propertyHelper)
 {
 }
示例#12
0
 public PropertySetterHandler(IPropertyHelper propertyHelper, IResultSetter resultSetter)
 {
     _propertyHelper = propertyHelper;
     _resultSetter   = resultSetter;
 }
示例#13
0
 public PropertySetterHandler(IPropertyHelper propertyHelper, IConfigureCall configureCall)
 {
     _propertyHelper = propertyHelper;
     ConfigureCall   = configureCall;
 }
示例#14
0
 public MSController(IService <TSDO> service, IMapper mapper, IPropertyHelper <TModel> propertyHelper)
 {
     _service       = service;
     Mapper         = mapper;
     PropertyHelper = propertyHelper;
 }
 public DynamoDbResourceQuerablePolicy(IPropertyHelper <TDTO> propertyHelper)
     : base(propertyHelper)
 {
 }
示例#16
0
 public Properties(IPropertyHelper propertyHelper)
 {
     _propertyHelper = propertyHelper;
 }
示例#17
0
 public JwtAuthorizedMSQuerableController(IQuerableService <TServiceQuery, TSDO> service, IMapper mapper, IPropertyHelper <TModel> propertyHelper)
     : base(service: service, mapper: mapper, propertyHelper: propertyHelper)
 {
 }
 public PropertySetterHandler(IPropertyHelper propertyHelper, IResultSetter resultSetter)
 {
     _propertyHelper = propertyHelper;
     _resultSetter = resultSetter;
 }
 public PropertySetterHandler(IPropertyHelper propertyHelper, IConfigureCall configureCall)
 {
     _propertyHelper = propertyHelper;
     ConfigureCall = configureCall;
 }
 public DynamoDbResourcePolicy(IPropertyHelper <TDTO> propertyHelper)
 {
     PropertyHelper = propertyHelper;
 }