public ActionResult NewOvertime() { OvertimeBuilder builder = new OvertimeBuilder(); EOfficeDirector<Overtime> director = new EOfficeDirector<Overtime>(); Overtime form = director.Construct(builder); return View(form); }
public ActionResult NewRequest() { RequestBuilder builder = new RequestBuilder(); EOfficeDirector<Request> director = new EOfficeDirector<Request>(); Request form = director.Construct(builder); return View(form); }
public ActionResult NewApplyExpense() { ApplyExpenseBuilder builder = new ApplyExpenseBuilder(); EOfficeDirector<ApplyExpense> director = new EOfficeDirector<ApplyExpense>(); ApplyExpense form = director.Construct(builder); return View("NewApplyExpense", form); }
public ActionResult NewLeave() { LeaveBuilder builder = new LeaveBuilder(); EOfficeDirector<Leave> director = new EOfficeDirector<Leave>(); Leave form = director.Construct(builder); return View(form); }
/// <summary> /// BugIssue /// </summary> /// <returns></returns> public ActionResult NewBugIssue() { BugIssueBuilder builder = new BugIssueBuilder(); EOfficeDirector<BugIssue> director = new EOfficeDirector<BugIssue>(); BugIssue form = director.Construct(builder); return View(form); }
public ActionResult NewApplyExpense() { ApplyExpenseBuilder builder = new ApplyExpenseBuilder(); EOfficeDirector <ApplyExpense> director = new EOfficeDirector <ApplyExpense>(); ApplyExpense 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 ActionResult newTravelExpense() { TravelExpenseBuilder builder = new TravelExpenseBuilder(); EOfficeDirector <TravelExpense> director = new EOfficeDirector <TravelExpense>(); TravelExpense form = director.Construct(builder); return(View(form)); }
public ActionResult NewOverTime() { OverTimeBuilder builder = new OverTimeBuilder(); EOfficeDirector <OverTime> director = new EOfficeDirector <OverTime>(); OverTime form = director.Construct(builder); return(View(form)); }
/// <summary> /// BugIssue /// </summary> /// <returns></returns> public ActionResult NewBugIssue() { BugIssueBuilder builder = new BugIssueBuilder(); EOfficeDirector <BugIssue> director = new EOfficeDirector <BugIssue>(); BugIssue 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 testNewOverTime() { OverTimeBuilder builder = new OverTimeBuilder(); EOfficeDirector<OverTime> director = new EOfficeDirector<OverTime>(); OverTime actual = director.Construct(builder); OverTime expected = new OverTime(); 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); }
public void testNewOverTime() { OverTimeBuilder builder = new OverTimeBuilder(); EOfficeDirector <OverTime> director = new EOfficeDirector <OverTime>(); OverTime actual = director.Construct(builder); OverTime expected = new OverTime(); expected.ToExpectedObject().ShouldEqual(actual); }
public void BuildMasterTest() { OvertimeBuilder builder = new OvertimeBuilder(); EOfficeDirector<OverTime> director = new EOfficeDirector<OverTime>(); OverTime actual = director.Construct(builder); var expected = new OverTime { }.ToExpectedObject(); Assert.AreEqual(expected, actual); }
public ActionResult NewOvertime() { OvertimeBuilder builder = new OvertimeBuilder(); EOfficeDirector <OverTime> director = new EOfficeDirector <OverTime>(); OverTime form = director.Construct(builder); NewOverTimeViewModel vm = ConverToViewModel(form); return(View("NewOvertime", vm)); }
public void BuildMasterTest() { OvertimeBuilder builder = new OvertimeBuilder(); EOfficeDirector <OverTime> director = new EOfficeDirector <OverTime>(); OverTime actual = director.Construct(builder); var expected = new OverTime { }.ToExpectedObject(); Assert.AreEqual(expected, actual); }
public ActionResult NewOvertime() { OvertimeBuilder builder = new OvertimeBuilder(); EOfficeDirector<OverTime> director = new EOfficeDirector<OverTime>(); OverTime form = director.Construct(builder); NewOverTimeViewModel vm = ConverToViewModel(form); return View("NewOvertime", vm); }