Ejemplo n.º 1
0
        public void Given2AlarmsInLab1History_WhenGetHistoricAlarmsWithLab1_ShouldReturnBothAlarms()
        {
            _labelModule1.SetupHistoricAlarms(LabelModuleAlarm(3), LabelModuleAlarm(4));
            IAlarmManagementService service = CreateService();
            IEnumerable <AlarmDTO>  alarms  = service.GetHistoricAlarms(LAB_1());

            Approvals.VerifyAll(alarms, x => x.ToJson());
        }
Ejemplo n.º 2
0
        public void GivenAlarmInLoa1History_WhenGetHistoricAlarmsWithLoa1_ThenReturnAlarm()
        {
            _loadingStation1.SetupHistoricAlarms(LoadingStationAlarm(1));
            IAlarmManagementService service = CreateService();
            IEnumerable <AlarmDTO>  alarms  = service.GetHistoricAlarms(LOA_1());

            Approvals.VerifyAll(alarms, x => x.ToJson());
        }