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); }
public void SoftDeleteDeviceSettingThatDoesNotExistTest() { var guid = Guid.NewGuid(); DeviceSettingService.SoftDelete(guid, TestUserPrincipal); }