public AllowedMemberValuesExtension(IAllowedValueSpecification allowed,
                                     IDictionary <MemberInfo, IAllowedValueSpecification> specifications,
                                     params IAllowedMemberValues[] items) : base(items.ToList())
 {
     _allowed       = allowed;
     Specifications = specifications;
 }
Exemplo n.º 2
0
 public Seeding(IDictionary <MemberInfo, IAllowedValueSpecification> specifications,
                IDictionary <MemberInfo, ISpecification <object> > instances,
                IAllowedValueSpecification allowed)
     : this(specifications.ToDictionary(x => x.Key, x => (ISpecification <object>)x.Value),
            instances, allowed)
 {
 }
Exemplo n.º 3
0
 public Seeding(IDictionary <MemberInfo, ISpecification <object> > specifications,
                IDictionary <MemberInfo, ISpecification <object> > instances,
                IAllowedValueSpecification allowed)
 {
     _specifications = specifications;
     _instances      = instances;
     _allowed        = allowed;
 }
 public AllowedMemberValuesExtension(IAllowedValueSpecification allowed)
     : this(allowed, new Dictionary <MemberInfo, IAllowedValueSpecification>())
 {
 }
 public AllowedSpecificationAlteration(IAllowedValueSpecification specification) => _specification = specification;