Exemplo n.º 1
0
        public PushNotification(PushNotificationBuilder builder)
        {
            var notification = builder.Create();

            DataProperties = notification.DataProperties;
            Name           = notification.Name;
            Title          = notification.Title;
            Body           = notification.Body;
        }
        public void Create_SHOULD_set_Title_and_Body_to_default_if_not_provided()
        {
            //Arrange
            var sut = new PushNotificationBuilder(_visibleTemplate);

            //Act
            var result = sut.Create();

            //Assert
            Assert.AreEqual("DefaultTitle", result.Title);
            Assert.AreEqual("DefaultBody", result.Body);
        }