From 73d46a0a1ed4474a27dd1eaf74183e40cc3ae69d Mon Sep 17 00:00:00 2001 From: adamelfstrom <105274564+adamelfstrom@users.noreply.github.com> Date: Wed, 29 Jan 2025 17:07:16 +0100 Subject: [PATCH 1/2] Update inconsistent and or non-unique test fnction names --- .../ConnectorTests/AbsenceTransactionTests.cs | 2 +- FortnoxSDK.Tests/ConnectorTests/AccountChartTests.cs | 2 +- FortnoxSDK.Tests/ConnectorTests/AccountTests.cs | 2 +- FortnoxSDK.Tests/ConnectorTests/ArticleTests.cs | 2 +- FortnoxSDK.Tests/ConnectorTests/AssetTests.cs | 2 +- .../ConnectorTests/AttendanceTransactionsTests.cs | 2 +- FortnoxSDK.Tests/ConnectorTests/CostCenterTests.cs | 2 +- .../ConnectorTests/CustomerReferenceTests.cs | 4 ++-- FortnoxSDK.Tests/ConnectorTests/CustomerTests.cs | 2 +- FortnoxSDK.Tests/ConnectorTests/InvoiceTests.cs | 12 ++++++------ FortnoxSDK.Tests/ConnectorTests/LabelTests.cs | 2 +- .../ConnectorTests/ModeOfPaymentTests.cs | 2 +- FortnoxSDK.Tests/ConnectorTests/OfferTests.cs | 6 +++--- FortnoxSDK.Tests/ConnectorTests/OrderTests.cs | 6 +++--- .../ConnectorTests/PredefinedAccountsTests.cs | 2 +- .../ConnectorTests/PredefinedVoucherSeriesTests.cs | 2 +- FortnoxSDK.Tests/ConnectorTests/PriceListTests.cs | 2 +- FortnoxSDK.Tests/ConnectorTests/PriceTests.cs | 4 ++-- .../ConnectorTests/PrintTemplateTests.cs | 4 ++-- FortnoxSDK.Tests/ConnectorTests/ProjectTests.cs | 4 ++-- .../ConnectorTests/SupplierInvoiceTests.cs | 4 ++-- FortnoxSDK.Tests/ConnectorTests/SupplierTests.cs | 4 ++-- FortnoxSDK.Tests/ConnectorTests/TaxReductionTests.cs | 2 +- .../ConnectorTests/TermsOfDeliveryTests.cs | 6 +++--- .../ConnectorTests/TermsOfPaymentTests.cs | 6 +++--- FortnoxSDK.Tests/ConnectorTests/UnitTests.cs | 2 +- .../ConnectorTests/VoucherFileConnectionTests.cs | 2 +- .../ConnectorTests/WayOfDeliveryTests.cs | 2 +- 28 files changed, 47 insertions(+), 47 deletions(-) diff --git a/FortnoxSDK.Tests/ConnectorTests/AbsenceTransactionTests.cs b/FortnoxSDK.Tests/ConnectorTests/AbsenceTransactionTests.cs index 75c1cdb2..a64f2c59 100644 --- a/FortnoxSDK.Tests/ConnectorTests/AbsenceTransactionTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/AbsenceTransactionTests.cs @@ -75,7 +75,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_AbsenceTransaction_Find() { #region Arrange var tmpEmployee = await TestUtils.GetBasicTestEmployee(); diff --git a/FortnoxSDK.Tests/ConnectorTests/AccountChartTests.cs b/FortnoxSDK.Tests/ConnectorTests/AccountChartTests.cs index 47647541..b6b31d23 100644 --- a/FortnoxSDK.Tests/ConnectorTests/AccountChartTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/AccountChartTests.cs @@ -17,7 +17,7 @@ public async Task Test_AccountChart_CRUD() } [TestMethod] - public async Task Test_Find() + public async Task Test_AccountChart_Find() { var connector = FortnoxClient.AccountChartConnector; diff --git a/FortnoxSDK.Tests/ConnectorTests/AccountTests.cs b/FortnoxSDK.Tests/ConnectorTests/AccountTests.cs index 9ebc93f9..29394d54 100644 --- a/FortnoxSDK.Tests/ConnectorTests/AccountTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/AccountTests.cs @@ -123,7 +123,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_Account_Find() { #region Arrange //Add code to create required resources diff --git a/FortnoxSDK.Tests/ConnectorTests/ArticleTests.cs b/FortnoxSDK.Tests/ConnectorTests/ArticleTests.cs index c136a383..ec28384f 100644 --- a/FortnoxSDK.Tests/ConnectorTests/ArticleTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/ArticleTests.cs @@ -72,7 +72,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_Article_Find() { #region Arrange //Add code to create required resources diff --git a/FortnoxSDK.Tests/ConnectorTests/AssetTests.cs b/FortnoxSDK.Tests/ConnectorTests/AssetTests.cs index 50cfe9f9..81abbfe9 100644 --- a/FortnoxSDK.Tests/ConnectorTests/AssetTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/AssetTests.cs @@ -79,7 +79,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_Asset_Find() { #region Arrange var tmpCostCenter = await FortnoxClient.CostCenterConnector.CreateAsync(new CostCenter() { Code = "TMPCC", Description = "TempCostCenter" }); diff --git a/FortnoxSDK.Tests/ConnectorTests/AttendanceTransactionsTests.cs b/FortnoxSDK.Tests/ConnectorTests/AttendanceTransactionsTests.cs index 2fffec83..fdb93050 100644 --- a/FortnoxSDK.Tests/ConnectorTests/AttendanceTransactionsTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/AttendanceTransactionsTests.cs @@ -75,7 +75,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_AttendanceTransactions_Find() { #region Arrange var tmpEmployee = await TestUtils.GetBasicTestEmployee(); diff --git a/FortnoxSDK.Tests/ConnectorTests/CostCenterTests.cs b/FortnoxSDK.Tests/ConnectorTests/CostCenterTests.cs index 022153c7..b5890802 100644 --- a/FortnoxSDK.Tests/ConnectorTests/CostCenterTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/CostCenterTests.cs @@ -67,7 +67,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_CostCenter_Find() { #region Arrange //Add code to create required resources diff --git a/FortnoxSDK.Tests/ConnectorTests/CustomerReferenceTests.cs b/FortnoxSDK.Tests/ConnectorTests/CustomerReferenceTests.cs index 60042455..2933e813 100644 --- a/FortnoxSDK.Tests/ConnectorTests/CustomerReferenceTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/CustomerReferenceTests.cs @@ -70,7 +70,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_CustomerReference_Find() { #region Arrange var tmpCustomer = await FortnoxClient.CustomerConnector.CreateAsync(new Customer() { Name = "TestCustomer" }); @@ -115,7 +115,7 @@ public async Task Test_Find() // Requires at least 101 customer references to exist in data source [TestMethod] - public async Task Test_Find_Unlimited() + public async Task Test_CustomerReference_Find_Unlimited() { var connector = FortnoxClient.CustomerReferenceConnector; diff --git a/FortnoxSDK.Tests/ConnectorTests/CustomerTests.cs b/FortnoxSDK.Tests/ConnectorTests/CustomerTests.cs index 07ee3414..082874ca 100644 --- a/FortnoxSDK.Tests/ConnectorTests/CustomerTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/CustomerTests.cs @@ -72,7 +72,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_Customer_Find() { #region Arrange //Add code to create required resources diff --git a/FortnoxSDK.Tests/ConnectorTests/InvoiceTests.cs b/FortnoxSDK.Tests/ConnectorTests/InvoiceTests.cs index 97bb9178..7203fe15 100644 --- a/FortnoxSDK.Tests/ConnectorTests/InvoiceTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/InvoiceTests.cs @@ -81,7 +81,7 @@ public async Task Test_Invoice_CRUD() } [TestMethod] - public async Task Test_Find() + public async Task Test_Invoice_Find() { #region Arrange var tmpCustomer = await FortnoxClient.CustomerConnector.CreateAsync(new Customer() { Name = "TmpCustomer", CountryCode = "SE", City = "Testopolis" }); @@ -141,7 +141,7 @@ public async Task Test_Find() } [TestMethod] - public async Task Test_DueDate() + public async Task Test_Invoice_DueDate() { #region Arrange var tmpCustomer = await FortnoxClient.CustomerConnector.CreateAsync(new Customer() { Name = "TmpCustomer", CountryCode = "SE", City = "Testopolis" }); @@ -187,7 +187,7 @@ public async Task Test_DueDate() [TestMethod] [Ignore("Fails with error 'Kan inte skicka dokument om inte företaget är registrerat'")] - public async Task Test_EPrint() + public async Task Test_Invoice_EPrint() { #region Arrange var cc = FortnoxClient.CustomerConnector; @@ -229,7 +229,7 @@ public async Task Test_EPrint() [Ignore("Fails with 'Bankuppgifter saknas'")] [TestMethod] - public async Task Test_Print() + public async Task Test_Invoice_Print() { #region Arrange var cc = FortnoxClient.CustomerConnector; @@ -271,7 +271,7 @@ public async Task Test_Print() [Ignore("Fails with 'Bankuppgifter saknas'")] [TestMethod] - public async Task Test_Email() + public async Task Test_Invoice_Email() { #region Arrange var tmpCustomer = await FortnoxClient.CustomerConnector.CreateAsync(new Customer() { Name = "TmpCustomer", CountryCode = "SE", City = "Testopolis", Email = "richard.randak@softwerk.se" }); @@ -310,7 +310,7 @@ public async Task Test_Email() } [TestMethod] - public async Task Test_Search() + public async Task Test_Invoice_Search() { var connector = FortnoxClient.InvoiceConnector; var searchSettings = new InvoiceSearch(); diff --git a/FortnoxSDK.Tests/ConnectorTests/LabelTests.cs b/FortnoxSDK.Tests/ConnectorTests/LabelTests.cs index 18ce9d2c..f59745d3 100644 --- a/FortnoxSDK.Tests/ConnectorTests/LabelTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/LabelTests.cs @@ -59,7 +59,7 @@ public async Task Test_Label_CRUD() } [TestMethod] - public async Task Test_Find() + public async Task Test_Label_Find() { var connector = FortnoxClient.LabelConnector; diff --git a/FortnoxSDK.Tests/ConnectorTests/ModeOfPaymentTests.cs b/FortnoxSDK.Tests/ConnectorTests/ModeOfPaymentTests.cs index 0f8dd19a..48d02dfd 100644 --- a/FortnoxSDK.Tests/ConnectorTests/ModeOfPaymentTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/ModeOfPaymentTests.cs @@ -68,7 +68,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_ModeOfPayment_Find() { #region Arrange var tmpAccount = await FortnoxClient.AccountConnector.CreateAsync(new Account() { Description = "TestAccount", Number = TestUtils.GetUnusedAccountNumber() }); diff --git a/FortnoxSDK.Tests/ConnectorTests/OfferTests.cs b/FortnoxSDK.Tests/ConnectorTests/OfferTests.cs index 7e784e08..8efdcfec 100644 --- a/FortnoxSDK.Tests/ConnectorTests/OfferTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/OfferTests.cs @@ -76,7 +76,7 @@ public async Task Test_Offer_CRUD() } [TestMethod] - public async Task Test_Find() + public async Task Test_Offer_Find() { #region Arrange var tmpCustomer = await FortnoxClient.CustomerConnector.CreateAsync(new Customer() { Name = "TmpCustomer", CountryCode = "SE", City = "Testopolis" }); @@ -133,7 +133,7 @@ public async Task Test_Find() } [TestMethod] - public async Task Test_Print() + public async Task Test_Offer_Print() { #region Arrange var tmpCustomer = await FortnoxClient.CustomerConnector.CreateAsync(new Customer() { Name = "TmpCustomer", CountryCode = "SE", City = "Testopolis" }); @@ -168,7 +168,7 @@ public async Task Test_Print() } [TestMethod] - public async Task Test_Email() + public async Task Test_Offer_Email() { #region Arrange var tmpCustomer = await FortnoxClient.CustomerConnector.CreateAsync(new Customer() { Name = "TmpCustomer", CountryCode = "SE", City = "Testopolis", Email = "richard.randak@softwerk.se" }); diff --git a/FortnoxSDK.Tests/ConnectorTests/OrderTests.cs b/FortnoxSDK.Tests/ConnectorTests/OrderTests.cs index 1e21a4eb..7c2891f1 100644 --- a/FortnoxSDK.Tests/ConnectorTests/OrderTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/OrderTests.cs @@ -73,7 +73,7 @@ public async Task Test_Order_CRUD() } [TestMethod] - public async Task Test_Find() + public async Task Test_Order_Find() { #region Arrange var tmpCustomer = await FortnoxClient.CustomerConnector.CreateAsync(new Customer() { Name = "TmpCustomer", CountryCode = "SE", City = "Testopolis" }); @@ -130,7 +130,7 @@ public async Task Test_Find() } [TestMethod] - public async Task Test_Print() + public async Task Test_Order_Print() { #region Arrange var tmpCustomer = await FortnoxClient.CustomerConnector.CreateAsync(new Customer() { Name = "TmpCustomer", CountryCode = "SE", City = "Testopolis" }); @@ -165,7 +165,7 @@ public async Task Test_Print() } [TestMethod] - public async Task Test_Email() + public async Task Test_Order_Email() { #region Arrange var tmpCustomer = await FortnoxClient.CustomerConnector.CreateAsync(new Customer() { Name = "TmpCustomer", CountryCode = "SE", City = "Testopolis", Email = "richard.randak@softwerk.se" }); diff --git a/FortnoxSDK.Tests/ConnectorTests/PredefinedAccountsTests.cs b/FortnoxSDK.Tests/ConnectorTests/PredefinedAccountsTests.cs index 7ead8302..b839208c 100644 --- a/FortnoxSDK.Tests/ConnectorTests/PredefinedAccountsTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/PredefinedAccountsTests.cs @@ -35,7 +35,7 @@ public async Task Test_PredefinedAccounts_CRUD() } [TestMethod] - public async Task Test_Find() + public async Task Test_PredefinedAccounts_Find() { var connector = FortnoxClient.PredefinedAccountsConnector; diff --git a/FortnoxSDK.Tests/ConnectorTests/PredefinedVoucherSeriesTests.cs b/FortnoxSDK.Tests/ConnectorTests/PredefinedVoucherSeriesTests.cs index 7341b6be..5fc21fc2 100644 --- a/FortnoxSDK.Tests/ConnectorTests/PredefinedVoucherSeriesTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/PredefinedVoucherSeriesTests.cs @@ -31,7 +31,7 @@ public async Task Test_PredefinedVoucherSeries_CRUD() } [TestMethod] - public async Task Test_Find() + public async Task Test_PredefinedVoucherSeries_Find() { var connector = FortnoxClient.PredefinedVoucherSeriesConnector; diff --git a/FortnoxSDK.Tests/ConnectorTests/PriceListTests.cs b/FortnoxSDK.Tests/ConnectorTests/PriceListTests.cs index 7e8ecec8..8ff785e1 100644 --- a/FortnoxSDK.Tests/ConnectorTests/PriceListTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/PriceListTests.cs @@ -60,7 +60,7 @@ public async Task Test_PriceList_CRUD() } [TestMethod] - public async Task Test_Find() + public async Task Test_PriceList_Find() { var connector = FortnoxClient.PriceListConnector; diff --git a/FortnoxSDK.Tests/ConnectorTests/PriceTests.cs b/FortnoxSDK.Tests/ConnectorTests/PriceTests.cs index 942e38d7..0aae8f21 100644 --- a/FortnoxSDK.Tests/ConnectorTests/PriceTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/PriceTests.cs @@ -69,7 +69,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_Price_Find() { #region Arrange var tmpArticleA = await FortnoxClient.ArticleConnector.CreateAsync(new Article() { Description = "TmpArticleA", PurchasePrice = 10 }); @@ -140,7 +140,7 @@ public async Task Test_Find() } [TestMethod] - public async Task Test_Find_Args_Specified() + public async Task Test_Price_Find_Args_Specified() { #region Arrange var tmpArticle = await FortnoxClient.ArticleConnector.CreateAsync(new Article() { Description = "TmpArticle", PurchasePrice = 10 }); diff --git a/FortnoxSDK.Tests/ConnectorTests/PrintTemplateTests.cs b/FortnoxSDK.Tests/ConnectorTests/PrintTemplateTests.cs index 99594121..4a3a0074 100644 --- a/FortnoxSDK.Tests/ConnectorTests/PrintTemplateTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/PrintTemplateTests.cs @@ -18,7 +18,7 @@ public async Task Test_PrintTemplate_CRUD() } [TestMethod] - public async Task Test_Find() + public async Task Test_PrintTemplate_Find() { var connector = FortnoxClient.PrintTemplateConnector; @@ -31,7 +31,7 @@ public async Task Test_Find() } [TestMethod] - public async Task Test_Find_Filter() + public async Task Test_PrintTemplate_Find_Filter() { var connector = FortnoxClient.PrintTemplateConnector; var searchSettings = new PrintTemplateSearch(); diff --git a/FortnoxSDK.Tests/ConnectorTests/ProjectTests.cs b/FortnoxSDK.Tests/ConnectorTests/ProjectTests.cs index 536ddb91..ae3383af 100644 --- a/FortnoxSDK.Tests/ConnectorTests/ProjectTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/ProjectTests.cs @@ -72,7 +72,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_Project_Find() { #region Arrange //Add code to create required resources @@ -125,7 +125,7 @@ public async Task Test_Find() } [TestMethod] - public async Task Test_Find_By_Description() + public async Task Test_Project_Find_By_Description() { #region Arrange //Add code to create required resources diff --git a/FortnoxSDK.Tests/ConnectorTests/SupplierInvoiceTests.cs b/FortnoxSDK.Tests/ConnectorTests/SupplierInvoiceTests.cs index bc4ac777..3f04ecf3 100644 --- a/FortnoxSDK.Tests/ConnectorTests/SupplierInvoiceTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/SupplierInvoiceTests.cs @@ -80,7 +80,7 @@ public async Task Test_SupplierInvoice_CRUD() } [TestMethod] - public async Task Test_Find() + public async Task Test_SupplierInvoice_Find() { #region Arrange var tmpSupplier = await FortnoxClient.SupplierConnector.CreateAsync(new Supplier() { Name = "TmpSupplier" }); @@ -141,7 +141,7 @@ public async Task Test_Find() } [TestMethod] - public async Task Test_Book() + public async Task Test_SupplierInvoice_Book() { #region Arrange var tmpSupplier = await FortnoxClient.SupplierConnector.CreateAsync(new Supplier() { Name = "TmpSupplier" }); diff --git a/FortnoxSDK.Tests/ConnectorTests/SupplierTests.cs b/FortnoxSDK.Tests/ConnectorTests/SupplierTests.cs index 91e590a0..8610785c 100644 --- a/FortnoxSDK.Tests/ConnectorTests/SupplierTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/SupplierTests.cs @@ -78,7 +78,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_Supplier_Find() { #region Arrange //Add code to create required resources @@ -138,7 +138,7 @@ public async Task Test_Find() } [TestMethod] - public async Task VatType_Supported() + public async Task Test_Supplier_VatType_Supported() { var vatTypes = Enum.GetValues(typeof(SupplierVATType)).Cast().ToList(); diff --git a/FortnoxSDK.Tests/ConnectorTests/TaxReductionTests.cs b/FortnoxSDK.Tests/ConnectorTests/TaxReductionTests.cs index 01aa0836..11eb0e7b 100644 --- a/FortnoxSDK.Tests/ConnectorTests/TaxReductionTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/TaxReductionTests.cs @@ -99,7 +99,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_TaxReduction_Find() { #region Arrange var tmpCustomer = await FortnoxClient.CustomerConnector.CreateAsync(new Customer() { Name = "TmpCustomer", CountryCode = "SE", City = "Testopolis" }); diff --git a/FortnoxSDK.Tests/ConnectorTests/TermsOfDeliveryTests.cs b/FortnoxSDK.Tests/ConnectorTests/TermsOfDeliveryTests.cs index aaa497d4..951f24bd 100644 --- a/FortnoxSDK.Tests/ConnectorTests/TermsOfDeliveryTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/TermsOfDeliveryTests.cs @@ -65,7 +65,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_TermsOfDelivery_Find() { var connector = FortnoxClient.TermsOfDeliveryConnector; @@ -79,7 +79,7 @@ public async Task Test_Find() { await connector.DeleteAsync(entry.Code); } - + var newTermsOfDelivery = new TermsOfDelivery() { Description = "TestDeliveryTerms" @@ -102,7 +102,7 @@ public async Task Test_Find() //Apply Limit //Terms of deleivery not working limit and not returning MetaInformation from fortnox response, so limit will not work as expected - searchSettings.Limit = 5; + searchSettings.Limit = 5; var limitedCollection = await connector.FindAsync(searchSettings); Assert.AreEqual(5, limitedCollection.Entities.Count); diff --git a/FortnoxSDK.Tests/ConnectorTests/TermsOfPaymentTests.cs b/FortnoxSDK.Tests/ConnectorTests/TermsOfPaymentTests.cs index f4f11eb7..a78aac4e 100644 --- a/FortnoxSDK.Tests/ConnectorTests/TermsOfPaymentTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/TermsOfPaymentTests.cs @@ -65,7 +65,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_TermsOfPayment_Find() { var connector = FortnoxClient.TermsOfPaymentConnector; @@ -91,13 +91,13 @@ public async Task Test_Find() foreach (var entry in fullCollectionExists.Entities) { await connector.DeleteAsync(entry.Code); - } + } searchSettingsExits.Page = fullCollectionExists.CurrentPage + 1; fullCollectionExists = await connector.FindAsync(searchSettingsExits); } } - + var newTermsOfPayment = new TermsOfPayment() { diff --git a/FortnoxSDK.Tests/ConnectorTests/UnitTests.cs b/FortnoxSDK.Tests/ConnectorTests/UnitTests.cs index ce610038..70d3cbe9 100644 --- a/FortnoxSDK.Tests/ConnectorTests/UnitTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/UnitTests.cs @@ -67,7 +67,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_Unit_Find() { var connector = FortnoxClient.UnitConnector; diff --git a/FortnoxSDK.Tests/ConnectorTests/VoucherFileConnectionTests.cs b/FortnoxSDK.Tests/ConnectorTests/VoucherFileConnectionTests.cs index a028bcea..303d21cc 100644 --- a/FortnoxSDK.Tests/ConnectorTests/VoucherFileConnectionTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/VoucherFileConnectionTests.cs @@ -77,7 +77,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Create_NonDefaultYear() + public async Task Create_VoucherFileConnection_NonDefaultYear() { #region Arrange diff --git a/FortnoxSDK.Tests/ConnectorTests/WayOfDeliveryTests.cs b/FortnoxSDK.Tests/ConnectorTests/WayOfDeliveryTests.cs index afe5af06..71cf20af 100644 --- a/FortnoxSDK.Tests/ConnectorTests/WayOfDeliveryTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/WayOfDeliveryTests.cs @@ -67,7 +67,7 @@ await Assert.ThrowsExceptionAsync( } [TestMethod] - public async Task Test_Find() + public async Task Test_WayOfDelivery_Find() { var connector = FortnoxClient.WayOfDeliveryConnector; From 7f5214c9326af9fca16e9dba800ac3942221c3df Mon Sep 17 00:00:00 2001 From: adamelfstrom <105274564+adamelfstrom@users.noreply.github.com> Date: Thu, 30 Jan 2025 08:45:44 +0100 Subject: [PATCH 2/2] Disable failing test for now --- FortnoxSDK.Tests/ConnectorTests/ScheduleTimesTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/FortnoxSDK.Tests/ConnectorTests/ScheduleTimesTests.cs b/FortnoxSDK.Tests/ConnectorTests/ScheduleTimesTests.cs index 327dd401..4d2786dd 100644 --- a/FortnoxSDK.Tests/ConnectorTests/ScheduleTimesTests.cs +++ b/FortnoxSDK.Tests/ConnectorTests/ScheduleTimesTests.cs @@ -11,6 +11,7 @@ public class ScheduleTimesTests { public FortnoxClient FortnoxClient = TestUtils.DefaultFortnoxClient; + [Ignore("Unable to update Hours using test credentials, re-enable after switching from StaticTokenAuth to a service account with StandardAuth")] [TestMethod] public async Task Test_ScheduleTimes_CRUD() {