コード例 #1
0
 public ActionResult NewOvertime()
 {
     OvertimeBuilder builder = new OvertimeBuilder();
     EOfficeDirector<Overtime> director = new EOfficeDirector<Overtime>();
     Overtime form = director.Construct(builder);
     return View(form);
 }
コード例 #2
0
        public ActionResult NewOvertime()
        {
            OvertimeBuilder            builder  = new OvertimeBuilder();
            EOfficeDirector <OverTime> director = new EOfficeDirector <OverTime>();
            OverTime form = director.Construct(builder);

            return(View("NewOvertime", form));
        }
コード例 #3
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);
        }
コード例 #4
0
        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);
        }
コード例 #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);
        }