/// <summary>
 /// Marks a HardwareAsset for deletion
 /// </summary>
 /// <param name="authToken">AuthorizationToken to use</param>
 /// <param name="item">HardwareAsset to delete</param>
 /// <param name="markPending">If true, mark the object as Pending Deletion instead of Deleted.</param>
 /// <returns></returns>
 public static async Task<bool> Delete(AuthorizationToken authToken, HardwareAsset item, bool markPending = true)
 {
     return await ConfigurationItemController.DeleteObject(authToken, item, markPending);
 }
        public async Task HWA01_CreateHardwareAssetTest()
        {
            // Arrange
            Guid userId = _authToken.User.Id;
            Guid testId = Guid.NewGuid();
            string model = "Testiplex 420" + testId.ToString();
            string manufacturer = "Doll" + testId.ToString();
            string assetTag = "ABC-A1234" + testId.ToString();
            string serialNumber = "SDHZ2891000000000K13" + testId.ToString();

            // Act
            _asset = await HardwareAssetController.Create(_authToken, model, manufacturer, assetTag, serialNumber);
            _objectsToCleanup.Add(_asset);

            // Assert
            Assert.IsNotNull(_asset, "Expected a HardwareAsset, got null");
            Assert.IsTrue(_asset.IsActive, "Expected HardwareAsset.IsActive to be true, got false");
            Assert.AreEqual(model, _asset.Model, "HardwareAsset.Model does not match test data");
            Assert.AreEqual(manufacturer, _asset.Manufacturer, "HardwareAsset.Manufacturer does not match test data");
            Assert.AreEqual(assetTag, _asset.AssetTag, "HardwareAsset.AssetTag does not match test data");
            Assert.AreEqual(serialNumber, _asset.SerialNumber, "HardwareAsset.SerialNumber does not match test data");
        }
 /// <summary>
 /// Marks a HardwareAsset for deletion
 /// </summary>
 /// <param name="authToken">AuthorizationToken to use</param>
 /// <param name="item">HardwareAsset to delete</param>
 /// <param name="markPending">If true, mark the object as Pending Deletion instead of Deleted.</param>
 /// <returns></returns>
 public static async Task <bool> Delete(AuthorizationToken authToken, HardwareAsset item, bool markPending = true)
 {
     return(await ConfigurationItemController.DeleteObject(authToken, item, markPending));
 }