public void SetUp() { theColumn = LinkColumn<Case>.For(x => x.Condition); theHarness = new ColumnFillerHarness(); theHarness.Formatter.Stub(x => x.GetDisplayForValue(theColumn.Accessor, theRawValue)).Return(theFormattedValue); theDto = theHarness.RunColumn<Case>(theColumn, x => { x.SetValue(c => c.Id, _id); x.SetValue(c => c.Condition, theRawValue); }); }
public void SetUp() { theColumn = new CommandColumn<Case, CaseActionModel>(CommandKey.Action); theHarness = new ColumnFillerHarness(); theDto = theHarness.RunColumn<Case>(theColumn, x => { x.SetValue(c => c.Id, _id); }); theColumnModel = theColumn.ToDictionary().Single(); }