public void SoftDeleteDeviceTypeTest() { var foundDeviceTypes = DeviceTypeService.Search(TestDeviceTypeName).ToList(); Assert.AreEqual(1, foundDeviceTypes.Count); DeviceTypeService.SoftDelete(foundDeviceTypes.First().DeviceTypeId, TestUserPrincipal); var softDeletedAccount = DeviceTypeService.Search(TestDeviceTypeName).ToList(); Assert.AreEqual(1, softDeletedAccount.Count); Assert.IsTrue(softDeletedAccount.First().IsDeleted); }
public void SoftDeleteDeviceTypeThatDoesNotExistTest() { var guid = Guid.NewGuid(); DeviceTypeService.SoftDelete(guid, TestUserPrincipal); }