2019-12-01 14:38:14 +00:00
|
|
|
using System.Threading.Tasks;
|
2021-08-01 17:35:54 +00:00
|
|
|
using NucuCar.Sensors.Abstractions;
|
2021-08-02 18:13:59 +00:00
|
|
|
using NucuCar.Sensors.Modules.BME680;
|
2019-11-30 16:55:55 +00:00
|
|
|
|
2021-08-02 18:57:52 +00:00
|
|
|
namespace NucuCar.UnitTests.NucuCar.Sensors.Bme680
|
2019-11-30 16:55:55 +00:00
|
|
|
{
|
2019-12-01 14:38:14 +00:00
|
|
|
public class TestBme680Sensor : Bme680Sensor
|
2019-11-30 16:55:55 +00:00
|
|
|
{
|
2019-12-17 19:40:20 +00:00
|
|
|
public override Task TakeMeasurementAsync()
|
2019-12-01 14:38:14 +00:00
|
|
|
{
|
|
|
|
return Task.CompletedTask;
|
|
|
|
}
|
|
|
|
|
2019-12-17 19:44:15 +00:00
|
|
|
public override void Initialize()
|
2019-11-30 16:55:55 +00:00
|
|
|
{
|
|
|
|
|
2019-12-01 14:38:14 +00:00
|
|
|
}
|
|
|
|
|
2021-08-02 18:09:29 +00:00
|
|
|
public override SensorResponse GetMeasurement()
|
2019-12-01 14:38:14 +00:00
|
|
|
{
|
2021-08-02 18:09:29 +00:00
|
|
|
return new SensorResponse();
|
2019-12-01 14:38:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public override SensorStateEnum GetState()
|
|
|
|
{
|
|
|
|
return SensorStateEnum.Error;
|
2019-11-30 16:55:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|