TestProgram/TestAssets.cs
/// <summary>
/// Test to get a list of deprications
/// </summary>
Test to get a list of deprications
Test to get a list of deprications
[TestMethod]
        public async Task TestGetDepricationsList()
        {
            FortnoxResponse<AssetsDepreciationRoot> fr = await config.fortnox_client.Get<AssetsDepreciationRoot>("assets/depreciations/2018-12-31");
            if (fr.model == null)
            {
                config.logger.LogError(fr.error);
            }
            Assert.AreNotEqual(null, fr.model);
        }
[ TestMethod ] public async Task TestGetDepricationsList ( ) { FortnoxResponse < AssetsDepreciationRoot > fr = await config . fortnox_client . Get < AssetsDepreciationRoot > ( " " ) ; if ( fr . model == null ) { config . logger . LogError ( fr . error ) ; } Assert . AreNotEqual ( null , fr . model ) ; }
Test to get a list of deprications
Test to get a list of deprications
// Get a list // Log the error // Test evaluation