public void TestGetSettingDeviceAlarmViewModelByBuildID() { AlarmDeviceOverLimitService service = new AlarmDeviceOverLimitService(); AlarmDeviceOverLimitViewModel ViewModel = service.GetSettingAlarmLimitValueViewModel("000001G001"); Console.WriteLine(UtilTest.GetJson(ViewModel)); }
public void TestEnergyAlarmByBuildID_Date() { AlarmDeviceOverLimitService service = new AlarmDeviceOverLimitService(); DateTime today = DateTime.Now.AddDays(-8); AlarmDeviceOverLimitViewModel model = service.GetViewModel("000001G001", today.ToString("yyyy-MM-dd")); Console.WriteLine(UtilTest.GetJson(model)); }
public void TestGetSettingDeviceAlarmViewModelByUser() { DateTime today = DateTime.Now; AlarmDeviceOverLimitService service = new AlarmDeviceOverLimitService(); AlarmDeviceOverLimitViewModel ViewModel = service.GetSettingViewModelByUserName("admin"); Console.WriteLine(UtilTest.GetJson(ViewModel)); }
public void TestEnergyAlarmByUserName() { AlarmDeviceOverLimitService service = new AlarmDeviceOverLimitService(); AlarmDeviceOverLimitViewModel model = service.GetViewModelByUserName("admin"); Console.WriteLine(UtilTest.GetJson(model)); }