public void Simple()
 {
     var service = new BroadcastService
                       {
                           RequestBuilder = ServerRequestBuilder.Instance
                       };
     var notification = new BroadcastNotificationRequest
                            {
                                ExcludeTokens = new List<string> {"TokenToExclude"},
                                Payload = new PushPayload
                                              {
                                                  Alert = "Alert 2",
                                                  Badge = Badge.Increment()
                                              }
                            };
     service.Execute(notification, response => Debug.WriteLine("Success"),ExceptionHandler.Handle);
 }
        public void Simple()
        {
            var service = new BroadcastService
                {
                    RequestBuilder = RequestBuilderHelper.Build()
                };

            var broadcastNotification = new BroadcastNotificationRequest
                {
                    Payload = new PushPayload
                        {
                            Alert = "Alert 2",
                            Badge = Badge.Increment()
                        }
                };

            var asyncTestHelper = new AsyncTestHelper();
            service.Execute(broadcastNotification, response => asyncTestHelper.Callback(null), asyncTestHelper.HandleException);
            asyncTestHelper.Wait();
        }