diff --git a/src/Altinn.Notifications.Integrations/Profile/ProfileClient.cs b/src/Altinn.Notifications.Integrations/Profile/ProfileClient.cs index c80b71d4..ec9d80dd 100644 --- a/src/Altinn.Notifications.Integrations/Profile/ProfileClient.cs +++ b/src/Altinn.Notifications.Integrations/Profile/ProfileClient.cs @@ -46,7 +46,7 @@ public async Task> GetUserContactPoints(List nat } string responseContent = await response.Content.ReadAsStringAsync(); - List? contactPoints = JsonSerializer.Deserialize(responseContent, JsonSerializerOptionsProvider.Options)!.ContactPointList; + List? contactPoints = JsonSerializer.Deserialize(responseContent, JsonSerializerOptionsProvider.Options)!.ContactPointsList; return contactPoints!; } diff --git a/src/Altinn.Notifications.Integrations/Profile/UserContactPointsList.cs b/src/Altinn.Notifications.Integrations/Profile/UserContactPointsList.cs index 342bb804..1467d5bd 100644 --- a/src/Altinn.Notifications.Integrations/Profile/UserContactPointsList.cs +++ b/src/Altinn.Notifications.Integrations/Profile/UserContactPointsList.cs @@ -10,5 +10,5 @@ public class UserContactPointsList /// /// A list containing contact points for users /// - public List ContactPointList { get; set; } = []; + public List ContactPointsList { get; set; } = []; } diff --git a/test/Altinn.Notifications.Tests/Notifications.Integrations/Profile/ProfileClientTests.cs b/test/Altinn.Notifications.Tests/Notifications.Integrations/Profile/ProfileClientTests.cs index d87f6275..5b2a8e23 100644 --- a/test/Altinn.Notifications.Tests/Notifications.Integrations/Profile/ProfileClientTests.cs +++ b/test/Altinn.Notifications.Tests/Notifications.Integrations/Profile/ProfileClientTests.cs @@ -155,7 +155,7 @@ private Task GetResponse(UserContactPointLookup lookup) } else if (typeof(T) == typeof(UserContactPointsList)) { - return new UserContactPointsList() { ContactPointList = new List() }; + return new UserContactPointsList() { ContactPointsList = new List() }; } return null; @@ -179,7 +179,7 @@ private Task GetResponse(UserContactPointLookup lookup) new UserContactPoints() { NationalIdentityNumber = "01025101038", Email = string.Empty }, new UserContactPoints() { NationalIdentityNumber = "01025101037", Email = string.Empty } }; - return new UserContactPointsList() { ContactPointList = contactPointsList }; + return new UserContactPointsList() { ContactPointsList = contactPointsList }; } return null;