Ejemplo n.º 1
0
 public FluentConfigurationIf <T> If(Func <IMetaConstraint <T>, MetaValidator.Core.MetaSpecificationExtension.OperatorAware <T> > @ifFactory)
 {
     if (factory == null || factory == DefaultFactory)
     {
         return(new FluentConfigurationIf <T>(configuration, @ifFactory));
     }
     else
     {
         var ifSpec = @ifFactory.@Get(@if =>
                                      @if(null).Unwrap());
         return(new FluentConfigurationIf <T>(configuration, factory, s => s.And(ifSpec)));
     }
 }
Ejemplo n.º 2
0
 protected virtual ISpecification <Type> GetTypeError()
 {
     return(getTypeErrorSpec.@Get(get => get()));
 }
Ejemplo n.º 3
0
 protected virtual ISpecification <MemberInfo> GetMemberError()
 {
     return(getMemberErrorSpec.@Get(get => get()));
 }
Ejemplo n.º 4
0
 //
 protected virtual ISpecification <Assembly> GetAssemblyError()
 {
     return(getAssemblyErrorSpec.@Get(get => get()));
 }