public void GetAvailability()
        {
            var controller = new AppointmentsController();

            var start = new DateTime(2016, 1, 15, 13, 0, 0);
            var end = start.AddDays(40);
            var request = new AvailabilityRequest
            {
                DurationMinutes = 60,
                Start = start.ToString(),
                End = end.ToString(),
                Users = new List<string>()
                {
                    "*****@*****.**"
                }
            };

            var result = controller.Availability(request) as OkNegotiatedContentResult<AvailabilityResponse>;

            Assert.IsNotNull(result.Content.AvailabilityResult);
            Assert.IsTrue(result.Content.AvailabilityResult.Count > 0);
        }
        public void CreateAppointment()
        {
            var controller = new AppointmentsController();

            var start = new DateTime(2016, 1, 15, 13, 0, 0);
            var end = start.AddHours(2);
            var request = new CreateAppointmentRequest
            {
                Body = "Appointment Created from Unit Test",
                Location = "Cconference Room",
                Subject = "Appointment Unit Test",
                Start = start.ToString(),
                End = end.ToString(),
                Recipients = new List<string> { "*****@*****.**" }
            };

            var result = controller.Create(request) as OkNegotiatedContentResult<CreateAppointmentResponse>;

            Assert.IsNotNull(result.Content.AppointId);
            Assert.IsNotNull(result.Content.Message);
        }
        public void GetAppointment()
        {
            var controller = new AppointmentsController();

            var request = new GetAppointmentsRequest
            {
                Start = DateTime.UtcNow.ToString(),
                End = DateTime.UtcNow.AddDays(30).ToString()
            };
            var result = controller.GetDetails(request) as  OkNegotiatedContentResult<GetAppointmentsResponse>;

            Assert.IsNotNull(result.Content.Appointments);
        }