From 3678e18dfab7c19434f5542cd6123078e0a36073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Skogstad?= Date: Fri, 8 Nov 2024 11:54:48 +0100 Subject: [PATCH] chore(graphql): Test against correct search content object type (#1419) ## Summary by CodeRabbit - **Tests** - Updated test references to align with new data structures for improved accuracy in dialog content type comparisons. --- .../ObjectTypes/ContentTypeTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Digdir.Domain.Dialogporten.GraphQl.Unit.Tests/ObjectTypes/ContentTypeTests.cs b/tests/Digdir.Domain.Dialogporten.GraphQl.Unit.Tests/ObjectTypes/ContentTypeTests.cs index 1367a1408..dbfdeccb3 100644 --- a/tests/Digdir.Domain.Dialogporten.GraphQl.Unit.Tests/ObjectTypes/ContentTypeTests.cs +++ b/tests/Digdir.Domain.Dialogporten.GraphQl.Unit.Tests/ObjectTypes/ContentTypeTests.cs @@ -1,5 +1,5 @@ -using Digdir.Domain.Dialogporten.Application.Features.V1.EndUser.Dialogs.Queries.Search; using Digdir.Domain.Dialogporten.Domain.Dialogs.Entities.Contents; +using Digdir.Domain.Dialogporten.GraphQL.EndUser.SearchDialogs; using Content = Digdir.Domain.Dialogporten.GraphQL.EndUser.DialogById.Content; namespace Digdir.Domain.Dialogporten.GraphQl.Unit.Tests.ObjectTypes; @@ -35,7 +35,7 @@ public void OutPutInList_DialogContentType_Names_Should_Match_Props_On_SearchCon .Select(x => x.Name) .ToList(); - var dtoPropertyNames = typeof(ContentDto) + var dtoPropertyNames = typeof(SearchContent) .GetProperties() .Select(p => p.Name) .ToList();