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); }); }
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(); }
public void SetUp() { theColumn = GridColumn <Case> .ColumnFor(x => x.Condition); }