Command processor to handle the change in the temperature range
Наследование: Microsoft.Azure.Devices.Applications.RemoteMonitoring.Simulator.WebJob.SimulatorCore.CommandProcessors.CommandProcessor
 public ChangeSetPointTempCommandProcessorTests()
 {
     _loggerMock = new Mock<ILogger>();
     _transportFactory = new Mock<ITransportFactory>();
     _telemetryFactoryMock = new Mock<ITelemetryFactory>();
     _configurationProviderMock = new Mock<IConfigurationProvider>();
     _coolerDevice = new Mock<CoolerDevice>(_loggerMock.Object, _transportFactory.Object,
         _telemetryFactoryMock.Object,
         _configurationProviderMock.Object);
     _changeSetPointTempCommandProcessor = new ChangeSetPointTempCommandProcessor(_coolerDevice.Object);
 }
        /// <summary>
        /// Builds up the set of commands that are supported by this device
        /// </summary>
        protected override void InitCommandProcessors()
        {
            var pingDeviceProcessor = new PingDeviceProcessor(this);
            var startCommandProcessor = new StartCommandProcessor(this);
            var stopCommandProcessor = new StopCommandProcessor(this);
            var diagnosticTelemetryCommandProcessor = new DiagnosticTelemetryCommandProcessor(this);
            var changeSetPointTempCommandProcessor = new ChangeSetPointTempCommandProcessor(this);
            var changeDeviceStateCommmandProcessor = new ChangeDeviceStateCommandProcessor(this);

            pingDeviceProcessor.NextCommandProcessor = startCommandProcessor;
            startCommandProcessor.NextCommandProcessor = stopCommandProcessor;
            stopCommandProcessor.NextCommandProcessor = diagnosticTelemetryCommandProcessor;
            diagnosticTelemetryCommandProcessor.NextCommandProcessor = changeSetPointTempCommandProcessor;
            changeSetPointTempCommandProcessor.NextCommandProcessor = changeDeviceStateCommmandProcessor;

            RootCommandProcessor = pingDeviceProcessor;
        }