예제 #1
0
 public override void Sum(WeatherForecastSummary weatherForecastSummary)
 {
     weatherForecastSummary.RainyDays++;
     if (Perimeter > weatherForecastSummary.Perimeter)
     {
         weatherForecastSummary.Perimeter = Perimeter;
         weatherForecastSummary.DayOfMaximumInstability = DayNumber;
     }
 }
예제 #2
0
        public WeatherForecastSummary GetWeatherForecastSummary(int days)
        {
            WeatherForecastSummary summary = new WeatherForecastSummary();

            var solarSystem = _galaxyRepository.GetSolarSystem();

            for (var number = 0; number <= days; number++)
            {
                Day day = GetDayFromNumberOfTheDay(solarSystem, number);
                summary.IncrementDay(day);
            }

            return(summary);
        }
예제 #3
0
 public override void Sum(WeatherForecastSummary weatherForecastSummary)
 {
     weatherForecastSummary.OptimalDays++;
 }
예제 #4
0
 public abstract void Sum(WeatherForecastSummary weatherForecastSummary);
예제 #5
0
 public override void Sum(WeatherForecastSummary weatherForecastSummary)
 {
     //Do not anything.
 }
예제 #6
0
 public override void Sum(WeatherForecastSummary weatherForecastSummary)
 {
     weatherForecastSummary.DroughtDays++;
 }