Пример #1
0
 private static void AddCalendarData( Sprint sprint )
 {
     var random = new Random();
      var date = (DateTime)sprint.StartDate;
      while (date <= sprint.EndDate)
      {
     var entry = new SprintCalendarEntry()
     {
        Sprint = sprint,
        HistoryDate = date,
        PointsRemaining = random.Next( 1, 42 )
     };
     ((IList<SprintCalendarEntry>)sprint.Calendar).Add( entry );
     date = date.AddDays( 1 );
      }
 }
 private void CreateCalendarEntry( Sprint sprint, DateTime date )
 {
     var p = PointsRemaining( sprint, date );
      var s = new SprintCalendarEntry()
      {
     Sprint = sprint,
     HistoryDate = date,
     PointsRemaining = p
      };
      sprint.Calendar.Add( s );
 }