Esempio n. 1
0
        public void ListRegistrationsAsync()
        {
            var registrationManager = new RegistrationManagerForTest();
            var push = new Push(registrationManager);

            push.ListRegistrationsAsync(this.originalNSData).Wait();
            registrationManager.VerifyPushHandle(this.originalNSDataTrimmed);
        }
Esempio n. 2
0
        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 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);
        }
Esempio n. 6
0
        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);
        }