public void LoadResponseByIdTest() { var service = ExchangeHelper.GetService(ExchangePass, ExchangeServerUrl, ExchangeLogin); var subj = "Item1"; DateTime.TryParse("10-Jun-2019", out var start); var meeting = AppointmentHelper.GetAppointmentBySubject(service, subj, start); AppointmentHelper.GetAttendeesById(service, meeting.Id.ToString(), MeetingAttendeeType.Required); Assert.AreEqual(1, 1); }
public void AttachedAppointmentTest() { DateTime.TryParse("06-July-2019", out var testStartDate); var service = ExchangeHelper.GetService(ExchangePass, ExchangeServerUrl, ExchangeLogin); var appointment = AppointmentHelper.GetAppointmentBySubject(service, "AppointmentAttachmentCheck1", testStartDate); if (appointment != null) { var toRemind = AppointmentHelper.GetAttendeesById(service, appointment.Id.ToString(), MeetingAttendeeType.Required) .Where(x => x.ResponseType == MeetingResponseType.Unknown || x.ResponseType == MeetingResponseType.NoResponseReceived) .Select(attendee => (EmailAddress)attendee.Address) .ToList(); // remind if any if (toRemind.Count > 0) { appointment.Forward("Please resond to an attached invitation", toRemind); } } Assert.AreNotEqual(1, 2); }