public ActionResult NewLeave() { LeaveBuilder builder = new LeaveBuilder(); EOfficeDirector<Leave> director = new EOfficeDirector<Leave>(); Leave form = director.Construct(builder); return View(form); }
public ActionResult NewLeave() { LeaveBuilder builder = new LeaveBuilder(); EOfficeDirector <Leave> director = new EOfficeDirector <Leave>(); Leave form = director.Construct(builder); return(View(form)); }
public void testNewLeave() { LeaveBuilder builder = new LeaveBuilder(); EOfficeDirector<Leave> director = new EOfficeDirector<Leave>(); Leave actual = director.Construct(builder); Leave expected = getExpectedLeave(); expected.ToExpectedObject().ShouldEqual(actual); }
public void testNewLeave() { LeaveBuilder builder = new LeaveBuilder(); EOfficeDirector <Leave> director = new EOfficeDirector <Leave>(); Leave actual = director.Construct(builder); Leave expected = getExpectedLeave(); expected.ToExpectedObject().ShouldEqual(actual); }