Exemple #1
0
        public void Should_Update()
        {
            DeviceTokenNotification deviceTokenNotification = new DeviceTokenNotification(deviceId, activityId, deviceNotificationStatus);

            deviceTokenNotification.Update(deviceNotificationStatus);
            Assert.True(deviceTokenNotification.Status);
        }
Exemple #2
0
        public void Should_Update_Second()
        {
            DeviceTokenNotification deviceTokenNotification = new DeviceTokenNotification(deviceId, activityId, deviceNotificationStatus);

            deviceTokenNotification.Update(deviceId, activityId);
            Assert.Equal(deviceId, deviceTokenNotification.DeviceId);
            Assert.Equal(activityId, deviceTokenNotification.ActivityId);
        }