Ejemplo n.º 1
0
        public void GivenAlarmInLab1_WhenGetCurrentAlarmsWithLab1_ThenReturnAlarm()
        {
            IAlarmManagementService service = CreateService();

            _labelModule1.SetupCurrentAlarms(LabelModuleAlarm(1));
            IEnumerable <AlarmDTO> alarms = service.GetCurrentAlarms(LAB_1());

            Approvals.VerifyAll(alarms, x => x.ToJson());
        }
Ejemplo n.º 2
0
        public void Given2AlarmsInLoa1_WhenGetCurrentAlarmsWithLoa1_ThenReturnBothAlarms()
        {
            IAlarmManagementService service = CreateService();

            _loadingStation1.SetupCurrentAlarms(LoadingStationAlarm(1), LoadingStationAlarm(2));
            IEnumerable <AlarmDTO> alarms = service.GetCurrentAlarms(LOA_1());

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