Ejemplo n.º 1
0
        public void TestGetAlarmDeviceFreeTimeViewModelByBuidID()
        {
            DateTime today = DateTime.Now;
            AlarmDeviceFreeTimeService   service   = new AlarmDeviceFreeTimeService();
            AlarmDeviceFreeTimeViewModel ViewModel = service.GetViewModel("000001G001", today.ToString("yyyy-MM-dd"));

            Console.WriteLine(UtilTest.GetJson(ViewModel));
        }
Ejemplo n.º 2
0
        public void TestGetAlarmDeviceFreeTimeViewModelByUser()
        {
            AlarmDeviceFreeTimeService   service   = new AlarmDeviceFreeTimeService();
            AlarmDeviceFreeTimeViewModel ViewModel = service.GetViewModelByUserName("admin");

            UtilTest.GetJson(ViewModel);
            Console.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
        }