public void UnitedValueToSensorDataTest(SensorType sensorType, TransactionType transactionType)
        {
            var unitedValue = _sensorValuesFactory.BuildUnitedSensorValue(sensorType);

            var sensorData = unitedValue.Convert(ProductName, _timeCollected, transactionType);

            _sensorValuesTester.TestSensorData(unitedValue, sensorData, _timeCollected, transactionType);
        }
Пример #2
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);
        }