Esempio n. 1
0
 public override void Sum(WeatherForecastSummary weatherForecastSummary)
 {
     weatherForecastSummary.RainyDays++;
     if (Perimeter > weatherForecastSummary.Perimeter)
     {
         weatherForecastSummary.Perimeter = Perimeter;
         weatherForecastSummary.DayOfMaximumInstability = DayNumber;
     }
 }
Esempio n. 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);
        }
Esempio n. 3
0
 public override void Sum(WeatherForecastSummary weatherForecastSummary)
 {
     weatherForecastSummary.OptimalDays++;
 }
Esempio n. 4
0
 public abstract void Sum(WeatherForecastSummary weatherForecastSummary);
Esempio n. 5
0
 public override void Sum(WeatherForecastSummary weatherForecastSummary)
 {
     //Do not anything.
 }
Esempio n. 6
0
 public override void Sum(WeatherForecastSummary weatherForecastSummary)
 {
     weatherForecastSummary.DroughtDays++;
 }