public void TestAlarmDepartmentFreeTimeByBuildID_Date()
        {
            AlarmDepartmentFreeTimeService service = new AlarmDepartmentFreeTimeService();
            DateTime today = DateTime.Now.AddDays(-1);
            AlarmDepartmentFreeTimeViewModel model = service.GetViewModel("000001G001", "01000", today.ToString("yyyy-MM-dd"));

            Console.WriteLine(UtilTest.GetJson(model));
        }
        public void TestAlarmDepartmentFreeTimeByUserName()
        {
            AlarmDepartmentFreeTimeService service = new AlarmDepartmentFreeTimeService();

            AlarmDepartmentFreeTimeViewModel model = service.GetViewModelByUserName("admin");

            Console.WriteLine(UtilTest.GetJson(model));
        }