public ActionResult NewOvertime()
 {
     OvertimeBuilder builder = new OvertimeBuilder();
     EOfficeDirector<Overtime> director = new EOfficeDirector<Overtime>();
     Overtime 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("NewOvertime", form));
        }
        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);
        }
Ejemplo n.º 5
0
        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);
        }