Exemple #1
0
        public void TestMethod1()
        {
            var controller = new WeatherForecastController(new Logger <WeatherForecastController>(new LoggerFactory()));
            var request    = new ForecastRequest
            {
                Latitude  = 65,
                Longitude = 34
            };
            var response = controller.GetTemperatureByLocation(request) as ContentResult;

            Assert.AreEqual(200, response.StatusCode);
        }