/// <summary> /// Initializes a new instance of the <see cref="DefaultSupportedOperationFactory"/> class. /// </summary> public DefaultSupportedOperationFactory( IEnumerable <ISupportedOperations> operations, IPropertyRangeRetrievalPolicy rangeRetrieval) { this.operations = operations; this.rangeRetrieval = rangeRetrieval; }
/// <summary> /// Initializes a new instance of the <see cref="IriTemplateFactory"/> class. /// </summary> public IriTemplateFactory( IPropertyRangeRetrievalPolicy propertyRange, IModelTemplateProvider modelTemplateProvider) { this.propertyRange = propertyRange; this.modelTemplateProvider = modelTemplateProvider; }
public IriTemplateFactoryTests() { this.propertyRangeRetrievalPolicy = A.Fake <IPropertyRangeRetrievalPolicy>(); var modelTemplateProvider = A.Fake <IModelTemplateProvider>(); A.CallTo(() => modelTemplateProvider.GetAbsoluteTemplate(A <Type> ._)).ReturnsLazily(() => this.path); this.factory = new IriTemplateFactory(this.propertyRangeRetrievalPolicy, modelTemplateProvider); }
/// <summary> /// Initializes a new instance of the <see cref="DefaultSupportedPropertyFactory"/> class. /// </summary> public DefaultSupportedPropertyFactory( IPropertyRangeRetrievalPolicy rangeRetrieval, ISupportedPropertyMetaProvider metaProvider, IPropertyPredicateIdPolicy propertyPredicateIdPolicy) { _rangeRetrieval = rangeRetrieval; _metaProvider = metaProvider; _propertyPredicateIdPolicy = propertyPredicateIdPolicy; }
public DefaultSupportedPropertyFactoryTests() { this.metaProvider = A.Fake <ISupportedPropertyMetaProvider>(); this.propertyRangeRetrievalPolicy = A.Fake <IPropertyRangeRetrievalPolicy>(); this.propertyPredicateIdPolicy = A.Fake <IPropertyPredicateIdPolicy>(); this.factory = new DefaultSupportedPropertyFactory( this.propertyRangeRetrievalPolicy, this.metaProvider, this.propertyPredicateIdPolicy, A.Fake <ISupportedOperationFactory>()); }
public DefaultSupportedPropertyFactoryTests() { _propertyType = A.Fake <IPropertyRangeMappingPolicy>(); _metaProvider = A.Fake <ISupportedPropertyMetaProvider>(); _propertyRangeRetrievalPolicy = A.Fake <IPropertyRangeRetrievalPolicy>(); _propertyPredicateIdPolicy = A.Fake <IPropertyPredicateIdPolicy>(); _factory = new DefaultSupportedPropertyFactory( _propertyRangeRetrievalPolicy, _metaProvider, _propertyPredicateIdPolicy); }
/// <summary> /// Initializes a new instance of the <see cref="DefaultSupportedPropertyFactory"/> class. /// </summary> public DefaultSupportedPropertyFactory( IPropertyRangeRetrievalPolicy rangeRetrieval, ISupportedPropertyMetaProvider metaProvider, IPropertyPredicateIdPolicy propertyPredicateIdPolicy, ISupportedOperationFactory operationFactory) { this.rangeRetrieval = rangeRetrieval; this.metaProvider = metaProvider; this.propertyPredicateIdPolicy = propertyPredicateIdPolicy; this.operationFactory = operationFactory; }
public DefaultSupportedOperationFactoryTests() { this.operations = A.Fake <ISupportedOperations>(); this.propertyRanges = A.Fake <IPropertyRangeRetrievalPolicy>(); this.factory = new DefaultSupportedOperationFactory(new[] { this.operations }, this.propertyRanges); }