示例#1
0
        public void SoftDeleteDeviceSettingTest()
        {
            var foundDeviceSettings = DeviceSettingService.Search(TestDeviceSettingName).ToList();

            Assert.AreEqual(1, foundDeviceSettings.Count);
            DeviceSettingService.SoftDelete(foundDeviceSettings.First().DeviceSettingId, TestUserPrincipal);

            var softDeleteDeviceSetting = DeviceSettingService.Search(TestDeviceSettingName).ToList();

            Assert.AreEqual(1, softDeleteDeviceSetting.Count);
            Assert.IsTrue(softDeleteDeviceSetting.First().IsDeleted);
        }
示例#2
0
        public void SoftDeleteDeviceSettingThatDoesNotExistTest()
        {
            var guid = Guid.NewGuid();

            DeviceSettingService.SoftDelete(guid, TestUserPrincipal);
        }