public void ConnectedHardware() { var payload = new ConnectedHardwarePayload { ConnectedHardware = "floppy" }; var obj = new ConnectedHardware(EventPriority.High, payload); obj.ValidateSchema(); }
/// <inheritdoc /> protected override List <IEvent> GetEventsImpl() { var connectedHardware = _wmiUtils.GetEnumerableValue(WmiDataType.ConnectedDevices); ConnectedHardwarePayload[] payloads = connectedHardware .Select(item => new ConnectedHardwarePayload { ConnectedHardware = item }).ToArray(); var ev = new ConnectedHardware(Priority, payloads); return(new List <IEvent> { ev }); }