public void ListRegistrationsAsync() { var registrationManager = new RegistrationManagerForTest(); var push = new Push(registrationManager); push.ListRegistrationsAsync(this.originalNSData).Wait(); registrationManager.VerifyPushHandle(this.originalNSDataTrimmed); }
public void RegisterTemplateAsync() { var registrationManager = new RegistrationManagerForTest(); var push = new Push(registrationManager); push.RegisterTemplateAsync(this.originalNSData, "jsonBody", "expiry", "templateName").Wait(); registrationManager.VerifyPushHandle(this.originalNSDataTrimmed); }
public void RegisterNativeAsyncWithTags() { var registrationManager = new RegistrationManagerForTest(); var push = new Push(registrationManager); push.RegisterNativeAsync(this.originalNSData, new List<string> {"foo"}).Wait(); registrationManager.VerifyPushHandle(this.originalNSDataTrimmed); }
public void RegisterTemplateAsyncWithTags() { var registrationManager = new RegistrationManagerForTest(); var push = new Push(registrationManager); push.RegisterTemplateAsync(this.originalNSData, "jsonBody", "expiry", "templateName", new List <string> { "foo" }).Wait(); registrationManager.VerifyPushHandle(this.originalNSDataTrimmed); }
public void RegisterNativeAsyncWithTags() { var registrationManager = new RegistrationManagerForTest(); var push = new Push(registrationManager); push.RegisterNativeAsync(this.originalNSData, new List <string> { "foo" }).Wait(); registrationManager.VerifyPushHandle(this.originalNSDataTrimmed); }
private async Task VerifyRegistration(Dictionary<string, string> parameters, Push push) { try { await this.GetClient().InvokeApiAsync("verifyRegisterInstallationResult", HttpMethod.Get, parameters); } finally { push.UnregisterAsync().Wait(); this.GetClient().CurrentUser = null; } }
private async Task VerifyRegistration(Dictionary <string, string> parameters, Push push) { try { await this.GetClient().InvokeApiAsync("verifyRegisterInstallationResult", HttpMethod.Get, parameters); } finally { push.UnregisterAsync().Wait(); this.GetClient().CurrentUser = null; } }