public void ExtractNumAlarms_Test() { var Mock_SystemInfo = new Mock_SystemInfo(); NodeType dbtype = new NodeType(Symbol.Intern("DatabaseManager"), false, false, new List <PropertyDefinition>()); Mock_SystemInfo.mock_addNodeDefinition(dbtype, "DatabaseManager", null, new NodeID(1)); var Mock_NodeController = new Mock_INodeController(); var mockSystemInterface = new Mock_SystemInterface(Mock_SystemInfo, Mock_NodeController); var station = new Stations(); var alarmList = new List <AlarmRecord>(); var alarmTime1 = DateTime.Now; var alarmRecord1 = new AlarmRecord(new NodeID(0, 1), Symbol.Intern("TestAlarm1"), alarmTime1, true); alarmList.Add(alarmRecord1); station.ExtractNumAlarms(QueryResult.Valid, alarmList, 1, mockSystemInterface); }