diff --git a/Test/Altinn.Correspondence.Tests/LegacyControllerTests.cs b/Test/Altinn.Correspondence.Tests/LegacyControllerTests.cs index b6f6a15e..40a864a1 100644 --- a/Test/Altinn.Correspondence.Tests/LegacyControllerTests.cs +++ b/Test/Altinn.Correspondence.Tests/LegacyControllerTests.cs @@ -155,7 +155,7 @@ public async Task LegacyGetCorrespondenceHistory_WithCorrespondenceActions_Inclu Assert.NotNull(content); Assert.Equal(content.NeedsConfirm, payload.Correspondence.IsConfirmationNeeded); Assert.All(content.History, status => Assert.True(status.User.AuthenticationLevel > 0)); - Assert.Contains(content.History, status => status.User.PartyId == _digdirPartyId.ToString()); + Assert.Contains(content.History, status => status.User.PartyId == _digdirPartyId); Assert.Contains(content.History, status => status.Status.Contains(CorrespondenceStatus.Published.ToString())); Assert.Contains(content.History, status => status.Status.Contains(CorrespondenceStatus.Fetched.ToString())); Assert.Contains(content.History, status => status.Status.Contains(CorrespondenceStatus.Confirmed.ToString()));