public void GetthreeNewestReportstInDB_Newest_NoErrorDetected()
        {
            //Arrange
            var reportList = new List <WeatherRepport>();

            reportList.Add(new WeatherRepport {
                AirPressure = 5, Humidity = 3, Id = 1, Place = new Place(), PlaceId = 1, Temp = 10, Time = DateTime.Now
            });
            reportList.Add(new WeatherRepport {
                AirPressure = 6, Humidity = 4, Id = 2, Place = new Place(), PlaceId = 2, Temp = 11, Time = DateTime.Now
            });
            reportList.Add(new WeatherRepport {
                AirPressure = 7, Humidity = 5, Id = 3, Place = new Place(), PlaceId = 3, Temp = 12, Time = DateTime.Now
            });


            databaseController.GetthreeNewestReports().Returns(reportList);


            //Act
            var result = (_uut.GetthreeNewestReports().Result as OkObjectResult);

            //Assert

            Assert.That(result.StatusCode, Is.EqualTo(200));
        }
        public async Task <ActionResult> GetthreeNewestReports()
        {
            var WRepotrs = _dbController.GetthreeNewestReports();

            if (WRepotrs == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(WRepotrs));
            }
        }