/// <summary>
 /// Initializes a new instance of the Recurrence class.
 /// </summary>
 /// <param name="frequency">the recurrence frequency. How often the
 /// schedule profile should take effect. This value must be Week,
 /// meaning each week will have the same set of profiles. Possible
 /// values include: 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week',
 /// 'Month', 'Year'</param>
 /// <param name="schedule">the scheduling constraints for when the
 /// profile begins.</param>
 public Recurrence(RecurrenceFrequency frequency, RecurrentSchedule schedule)
 {
     Frequency = frequency;
     Schedule  = schedule;
 }
 private static void AreEqual(RecurrentSchedule exp, RecurrentSchedule act)
 {
     if (exp != null)
     {
         AreEqual(exp.Days, act.Days);
         AreEqual(exp.Hours, act.Hours);
         AreEqual(exp.Minutes, act.Minutes);
         Assert.Equal(exp.TimeZone, act.TimeZone);
     }
 }