Esempio n. 1
0
        public void TestFindAllMeasurementsByStation(string station)
        {
            IEnumerable <Measurements> measurements = measurementDao.FindAllMeasurementsByStation(station);

            if (measurements != null)
            {
                foreach (Measurements m in measurements)
                {
                    Console.WriteLine($"FindAllMeasurementsByStation({station}) -> " +
                                      $"Station: {m.Station,5} | " +
                                      $"Airtemperature: {m.Airtemperature,-10} | " +
                                      $"Airpressure: {m.Airpressure,5} | " +
                                      $"Rainfall: {m.Rainfall,-10} | " +
                                      $"Humidity: {m.Humidity,-10} | " +
                                      $"WindSpeed: {m.WindSpeed,5} | " +
                                      $"WindDirection: {m.WindDirection,-10} | " +
                                      $"Timestamp: {m.Timestamp,-10}");
                }
            }
            else
            {
                Console.WriteLine($"FindAllMeasurementsByStation({station}) -> null");
            }
        }
Esempio n. 2
0
 public IEnumerable <Measurements> FindAllMeasurementsByStation(string station)
 {
     return(measurementsDao.FindAllMeasurementsByStation(station));
 }