public ActionResult View(int id) { var project = _service.GetProject(id); var columns = _columnBuilder.GetColumns(); var projectViewModel = new ProjectViewModel(project, columns); return(View(projectViewModel)); }
protected void BuilderReturnsColumns(List <Column> columns) { _columnBuilder = A.Fake <PivotalColumnBuilder>(); A.CallTo(() => _columnBuilder.GetColumns()).Returns(columns); }
public override void When() { _columns = _builder.GetColumns(); }