Ejemplo n.º 1
0
        public void GetAppointmentTest()
        {
            List <AppointmentProperty> list = ExchangeEwsService.GetAppointment(DateTime.Now, DateTime.Now.AddDays(20), exconfig);
            var result = list.Select(p => new { p.Location, p.Subject, p.Start, p.End });

            Console.Write(Newtonsoft.Json.JsonConvert.SerializeObject(result));
        }
Ejemplo n.º 2
0
        public void DelegateAccessCreateMeetingTest()
        {
            var app = new AppointmentProperty();

            app.Body      = "测试会议";
            app.End       = DateTime.Now.AddDays(3);
            app.Location  = "每天站会";
            app.Start     = DateTime.Now;
            app.Subject   = "每天站会";
            app.Attendees = new List <string>()
            {
                "*****@*****.**", "*****@*****.**"
            };
            ExchangeEwsService.DelegateAccessCreateMeeting(app, exconfig, "*****@*****.**");
        }
Ejemplo n.º 3
0
        public void CreateMeetingTest()
        {
            var app = new AppointmentProperty();

            app.Body      = "测试会议";
            app.End       = DateTime.Now.AddDays(3);
            app.Location  = "每天站会";
            app.Start     = DateTime.Now;
            app.Subject   = "每天站会";
            app.Attendees = new List <string>()
            {
                "*****@*****.**"
            };
            ExchangeEwsService.CreateAppointment(app, exconfig);
        }
Ejemplo n.º 4
0
 public void CancelMeetingTest()
 {
     ExchangeEwsService.CancelMeeting(exconfig, "*****@*****.**", DateTime.Now, DateTime.Now.AddDays(20));
 }
Ejemplo n.º 5
0
 public void ExportMimeAppointmentTest()
 {
     ExchangeEwsService.ExportMimeAppointment(@"E:\", 10, exconfig);
     //Console.Write(result.Count);
 }
Ejemplo n.º 6
0
 public void GetSuggestedMeetingTimesAndFreeBusyInfoTest()
 {
     ExchangeEwsService.GetSuggestedMeetingTimesAndFreeBusyInfo(exconfig, DateTime.Now, DateTime.Now.AddDays(1));
     //Console.Write(result.Count);
 }
Ejemplo n.º 7
0
        public void GetRoomListTest()
        {
            var result = ExchangeEwsService.GetRoomList(exconfig, DateTime.Now, DateTime.Now.AddDays(20));

            Console.Write(Newtonsoft.Json.JsonConvert.SerializeObject(result));
        }