Beispiel #1
0
        public void SensorValueToSensorDataEntityConverterTest(SensorType sensorType, TransactionType transactiontype)
        {
            var boolSensorValue = _sensorValuesFactory.BuildSensorValue(sensorType);

            var data = boolSensorValue.Convert(_productName, _timeCollected, transactiontype);

            _sensorValuesTester.TestSensorData(boolSensorValue, data, _timeCollected, transactiontype);
        }
        public void SensorValueToSensorDataEntityConverterTest(SensorType type)
        {
            var sensorValue = _sensorValuesFactory.BuildSensorValue(type);

            var dataEntity = sensorValue.Convert(_timeCollected, SensorStatus.Ok);

            SensorValuesTester.TestSensorDataEntity(sensorValue, dataEntity, _timeCollected);
        }
        public void SensorValueToSensorInfoConverterTest(SensorType type)
        {
            var sensorValue = _sensorValuesFactory.BuildSensorValue(type);

            var sensorInfo = sensorValue.Convert(_productName);

            _sensorValuesTester.TestSensorInfoFromDB(sensorValue, sensorInfo);
        }