public TemperatureMonitorViewModel(
            IRestApiService restApiService,
            ITemperatureSensorService temperatureSensorService,
            ITableStorageService tableStorageService)
        {
            _restApiService           = restApiService;
            _temperatureSensorService = temperatureSensorService;
            _tableStorageService      = tableStorageService;

            _cancellationTokenSource = new CancellationTokenSource();

            IsLoading = true;
            Summary   = new ObservableCollection <SensorData>();
            Date      = DateTime.Now;

            RefreshCommand      = new Command(async() => await RefreshAsync());
            NextDateCommand     = new Command(async() => await NextDateAsync());
            PreviousDateCommand = new Command(async() => await PreviousDateAsync());
        }
 public TemperatureSensorLauncher(ILoggerFactory loggerFactory, ITemperatureSensorService service)
 {
     _logger = loggerFactory.CreateLogger("Temperature Sensor Launcher");
     _temperatureSensorService = service;
 }