예제 #1
0
        public void SetUp()
        {
            theColumn = GridColumn <Case> .ColumnFor(x => x.Condition);

            var harness = new ColumnFillerHarness();

            harness.Formatter.Stub(x => x.GetDisplayForValue(theColumn.Accessor, theRawValue)).Return(theFormattedValue);

            theResultingDto = harness.RunColumn <Case>(theColumn, data =>
            {
                data.SetValue(c => c.Condition, theRawValue);
            });
        }
예제 #2
0
        public void SetUp()
        {
            theColumn = GridColumn <Case> .ColumnFor(x => x.Condition).TimeAgo();

            var harness = new ColumnFillerHarness();

            var request = new GetStringRequest(theColumn.Accessor, theRawValue, null)
            {
                Format = "{0:s}"
            };

            harness.Formatter.Stub(x => x.GetDisplay(request)).Return(theFormattedValue);

            theResultingDto = harness.RunColumn <Case>(theColumn, data =>
            {
                data.SetValue(c => c.Condition, theRawValue);
            });

            theColModel = theColumn.ToDictionary().Single();
        }
예제 #3
0
 public void SetUp()
 {
     theColumn = GridColumn <Case> .ColumnFor(x => x.Condition);
 }