示例#1
0
        public void Should_SetActive()
        {
            DeviceTokenNotification deviceTokenNotification = new DeviceTokenNotification(deviceId, activityId, deviceNotificationStatus);

            deviceTokenNotification.SetActive();
            Assert.True(deviceTokenNotification.IsActive);
        }
示例#2
0
        public void Should_Update()
        {
            DeviceTokenNotification deviceTokenNotification = new DeviceTokenNotification(deviceId, activityId, deviceNotificationStatus);

            deviceTokenNotification.Update(deviceNotificationStatus);
            Assert.True(deviceTokenNotification.Status);
        }
示例#3
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);
        }
示例#4
0
        public void Should_Construct_DeviceTokenNotification()
        {
            DeviceTokenNotification deviceTokenNotification = new DeviceTokenNotification(activityId, deviceNotificationStatus);

            _ = new DeviceTokenNotification();
            _ = deviceTokenNotification.DeviceTokenNotificationId;
            _ = deviceTokenNotification.DeviceToken;
            _ = deviceTokenNotification.Activity;

            deviceTokenNotification.ShouldNotBeNull();
        }
示例#5
0
        public void Should_Construct_DeviceTokenNotification_Second()
        {
            DeviceTokenNotification deviceTokenNotification = new DeviceTokenNotification(deviceId, activityId, deviceNotificationStatus);

            deviceTokenNotification.ShouldNotBeNull();
        }