public void Multiple() { var service = new AddTagToDeviceService { RequestBuilder = ServerRequestBuilder.Instance }; var request = new AddTagToDeviceRequest { DeviceToken = "DeviceToken", Tag = "tag1" }; service.Execute(request, response => Debug.WriteLine("Success"), ExceptionHandler.Handle); }
public void TagToDevice() { var service = new AddTagToDeviceService { RequestBuilder = RequestBuilderHelper.Build() }; var asyncTestHelper = new AsyncTestHelper(); var request = new AddTagToDeviceRequest { DeviceToken = RemoteSettings.AppleDeviceId, Tag = "africa" }; service.Execute(request, response => asyncTestHelper.Callback(null), asyncTestHelper.HandleException); asyncTestHelper.Wait(); }