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)));
     }
 }
示例#2
0
 protected virtual ISpecification <Type> GetTypeError()
 {
     return(getTypeErrorSpec.@Get(get => get()));
 }
示例#3
0
 protected virtual ISpecification <MemberInfo> GetMemberError()
 {
     return(getMemberErrorSpec.@Get(get => get()));
 }
示例#4
0
 //
 protected virtual ISpecification <Assembly> GetAssemblyError()
 {
     return(getAssemblyErrorSpec.@Get(get => get()));
 }