public async Task ShouldSendTemplatedNotification()
        {
            await ShouldCreateRegistration();

            var pushNotificationMessage = new TemplatedArgsPush
            {
                Name     = "Alex",
                PostName = "BitcoinPost"
            };

            //act
            await _hubSender.SendAsync(pushNotificationMessage, _testUserId);

            await ShouldUnsubscribeUserFromPush();
        }
        public void LocalizationArgumentsPopulationTest()
        {
            var message = new TemplatedArgsPush
            {
                Name     = "Alex",
                PostName = "SomePost"
            };

            var push = PlatformNotificationFactory.CreateTemplateProperties(message);

            Assert.NotNull(push);
            Assert.Equal(12, push.Count);
            Assert.Equal("Alex liked your SomePost post", push["title"]);
            Assert.Equal("Alex liked your SomePost post. Check it out!", push["body"]);
            Assert.Equal(message.BodyLocalizationKey, push["body_loc_key"]);
            Assert.Equal(message.TitleLocalizationKey, push["title_loc_key"]);
            Assert.Equal(message.NotificationType.ToString(), push["type"]);
            Assert.Equal(message.Badge.ToString(), push["badge"]);
            Assert.Equal(message.Sound, push["sound"]);
            Assert.Equal(message.Name, push["body_loc_arg1"]);
            Assert.Equal(message.PostName, push["body_loc_arg2"]);
            Assert.Equal(message.Name, push["title_loc_arg1"]);
            Assert.Equal(message.PostName, push["title_loc_arg2"]);
        }