diff --git a/FortnoxSDK.Tests/ConnectorTests/ContractAccrualTests.cs b/FortnoxSDK.Tests/ConnectorTests/ContractAccrualTests.cs index 6df9f52e..e57b759b 100644 --- a/FortnoxSDK.Tests/ConnectorTests/ContractAccrualTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/ContractAccrualTests.cs @@ -9,6 +9,7 @@ namespace FortnoxSDK.Tests.ConnectorTests; +[Ignore("Fails with error 'Feature inte tillgänglig'")] [TestClass] public class ContractAccrualTests { diff --git a/FortnoxSDK.Tests/ConnectorTests/FinancialYearTests.cs b/FortnoxSDK.Tests/ConnectorTests/FinancialYearTests.cs index 19092a34..8141c0fe 100644 --- a/FortnoxSDK.Tests/ConnectorTests/FinancialYearTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/FinancialYearTests.cs @@ -72,7 +72,8 @@ public async Task Test_FinancialYear_Find() var connector = FortnoxClient.FinancialYearConnector; var finYears = await connector.FindAsync(null); - Assert.AreEqual(6, finYears.Entities.Count); + var expectedYears = DateTime.Today.Year - 2018 + 1; // Years since 2018 + Assert.AreEqual(expectedYears, finYears.Entities.Count); Assert.IsNotNull(finYears.Entities.First().FromDate); }