Example #1
0
        public async void Test_Schedule()
        {
            var schedule = new DateTimeOffset(DateTime.Now);

            var request = new ScheduledBundleRequest(schedule);

            request.MailMessages.Add(NewMailMessage());
            request.HttpRequests.Add(NewHttpRequestMessage());
            request.ApexnetPushNotifications.Add(NewApexnetPushNotification());

            var response = await this.client.ScheduleAsync(request)
                                     .ConfigureAwait(false);

            Assert.NotNull(response.Id);
            Assert.Equal(schedule, response.Schedule);
        }
Example #2
0
 public Task <ScheduledResponse> ScheduleAsync(ScheduledBundleRequest request)
 {
     return(this.httpService.CreateAsync <ScheduledBundleRequest, ScheduledResponse>("schedule", request, null));
 }
Example #3
0
 public Task<ScheduledResponse> ScheduleAsync(ScheduledBundleRequest request)
 {
     return this.httpService.CreateAsync<ScheduledBundleRequest, ScheduledResponse>("schedule", request, null);
 }