コード例 #1
0
        public void GetWindLatestMonths_Testing_Cache()
        {
            //Arrange
            var fetcher = new WeatherObservation();

            //Act (USE DEBUGER TO BE SURE THE SECOND GETPARAMETERS FETCHES FROM CACHE)
            var fetchWind1 = fetcher.GetWindLatestMonths(71190);
            var fetchWind2 = fetcher.GetWindLatestMonths(71190);

            //Assert
            Assert.AreSame(fetchWind1, fetchWind2);
        }
コード例 #2
0
        public void GetWindLatestMonths_TDD()
        {
            //Arrange
            var fetcher = new WeatherObservation();

            //Act
            var fetchWind = fetcher.GetWindLatestMonths(71190);

            //Assert
            Assert.IsNotNull(fetchWind);
        }