Ejemplo n.º 1
0
        protected DiscoveryServiceBasedValidationCollectorReflector(
            ITypeDiscoveryService typeDiscoveryService,
            IValidatedTypeResolver validatedTypeResolver)
        {
            ArgumentUtility.CheckNotNull("typeDiscoveryService", typeDiscoveryService);
            ArgumentUtility.CheckNotNull("validatedTypeResolver", validatedTypeResolver);

            _typeDiscoveryService  = typeDiscoveryService;
            _validatedTypeResolver = validatedTypeResolver;
            _validationCollectors  = new Lazy <ILookup <Type, Type> > (GetValidationCollectors, LazyThreadSafetyMode.ExecutionAndPublication);
        }
Ejemplo n.º 2
0
 public void SetUp()
 {
     _decoratedResolverMock = MockRepository.GenerateStrictMock <IValidatedTypeResolver> ();
     _resolver = new MixinTypeAwareValidatedTypeResolverDecorator(_decoratedResolverMock);
 }
Ejemplo n.º 3
0
        public static IValidationCollectorReflector Create(ITypeDiscoveryService typeDiscoveryService, IValidatedTypeResolver validatedTypeResolver)
        {
            ArgumentUtility.CheckNotNull("typeDiscoveryService", typeDiscoveryService);
            ArgumentUtility.CheckNotNull("validatedTypeResolver", validatedTypeResolver);

            return(new DiscoveryServiceBasedValidationCollectorReflector(typeDiscoveryService, validatedTypeResolver));
        }
Ejemplo n.º 4
0
 public DiscoveryServiceBasedValidationCollectorReflector(IValidatedTypeResolver validatedTypeResolver)
     : this(ContextAwareTypeUtility.GetTypeDiscoveryService(), validatedTypeResolver)
 {
 }
Ejemplo n.º 5
0
        public MixinTypeAwareValidatedTypeResolverDecorator(IValidatedTypeResolver validatedTypeResolver)
        {
            ArgumentUtility.CheckNotNull("validatedTypeResolver", validatedTypeResolver);

            _validatedTypeResolver = validatedTypeResolver;
        }