public async Task TestUpdatePost() { // Create a post AssetRoot post = new AssetRoot { Asset = new Asset { Number = "RW4556", Description = "Laptop ASUS 5000 UPPDATERAD", TypeId = "8", DepreciationMethod = "0", AcquisitionValue = 20000M, DepreciateToResidualValue = 4000M, AcquisitionDate = "2018-09-01", AcquisitionStart = "2018-09-01", DepreciationFinal = "2022-12-31" } }; // Update the post FortnoxResponse<AssetRoot> fr = await config.fortnox_client.Update<AssetRoot>(post, "assets/2"); // Log the error if (fr.model == null) { config.logger.LogError(fr.error); } // Test evaluation Assert.AreNotEqual(null, fr.model); } // End of the TestUpdatePost method
public static void SetAssetRoot(AssetRoot assetRoot) { s_AssetRoot = assetRoot; }
private void OnEnable() { m_Target = target as AssetRoot; }