Esempio n. 1
0
 public SetMemberGrammar(MemberInfo[] members)
 {
     Key               = members.Select(x => x.Name).Join(".");
     Members           = members;
     CellModifications = new CellModifications();
     CellModifications.Header(Key);
 }
Esempio n. 2
0
        public DataColumnMatch(string columnName, Type columnType)
        {
            Name        = columnName;
            _columnType = columnType;

            CellModifications = new CellModifications();
        }
Esempio n. 3
0
 public CheckPropertyGrammar(MemberInfo[] members)
 {
     Members           = members;
     CellModifications = new CellModifications();
     Key = members.Select(x => x.Name).Join(".");
     CellModifications.Header(Key);
 }
Esempio n. 4
0
        public Cell BuildCell(CellHandling handling, Fixture fixture)
        {
            var cell = new Cell(handling, Name, _columnType);

            CellModifications.Apply(cell);

            return(cell);
        }
        public ConfigureObjectGrammar(string format, Action <TObject, TInput> configure)
        {
            var keys = format.ParseTemplateKeys();

            if (keys.Any())
            {
                _format = format;
                _key    = keys.Single();
            }
            else
            {
                _key    = format;
                _format = "Configure {0} with {1} = {{{1}}}".ToFormat(typeof(TObject).Name, _key);
            }

            _configure = configure;

            CellModifications = new CellModifications();
        }
Esempio n. 6
0
 public CheckPropertyGrammar(Accessor accessor)
 {
     _accessor         = accessor;
     CellModifications = new CellModifications();
 }
Esempio n. 7
0
 internal SetPropertyGrammar(Accessor accessor)
 {
     _accessor         = accessor;
     _template         = "{0} = {{{0}}}".ToFormat(_accessor.Name);
     CellModifications = new CellModifications();
 }
Esempio n. 8
0
 public AccessorMatch(Accessor accessor)
 {
     _accessor         = accessor;
     CellModifications = new CellModifications();
 }