From d061817e704b4afbe767774ec1cb6e41aa773405 Mon Sep 17 00:00:00 2001 From: Ronny Birkeli Date: Mon, 22 May 2023 14:10:17 +0200 Subject: [PATCH] Fix failing test --- test/Altinn.Codelists.Tests/SSB/Extensions/ExtensionTests.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/Altinn.Codelists.Tests/SSB/Extensions/ExtensionTests.cs b/test/Altinn.Codelists.Tests/SSB/Extensions/ExtensionTests.cs index ccb50fb..ae6dfd0 100644 --- a/test/Altinn.Codelists.Tests/SSB/Extensions/ExtensionTests.cs +++ b/test/Altinn.Codelists.Tests/SSB/Extensions/ExtensionTests.cs @@ -21,7 +21,9 @@ public void AddSSBClassifications() IServiceProvider serviceProvider = services.BuildServiceProvider(); - services.Select(x => x.ServiceType == typeof(IClassificationsClient)).Should().HaveCount(2); + IEnumerable classificationsClients = serviceProvider.GetServices(); + + classificationsClients.Should().HaveCount(1); } } }