コード例 #1
0
        public async Task Test_GetForecastByCoordsAsync_Malmo()
        {
            // Arrange
            var          service   = new WeatherApp.Services.WeatherForecastService();
            const double latitude  = 55.602840;
            const double longitude = 12.998944;

            // Act
            var forecast = await service.GetForecastByCoordsAsync(latitude, longitude);


            // Assert
            Assert.IsNotNull(forecast);
        }
コード例 #2
0
        public async Task Test_GetForecastByCoordsAsync()
        {
            // Arrange
            var          service   = new WeatherApp.Services.WeatherForecastService();
            const double latitude  = 59.334415;
            const double longitude = 18.110103;

            // Act
            var forecast = await service.GetForecastByCoordsAsync(latitude, longitude);


            // Assert
            Assert.IsNotNull(forecast);
        }