Skip to content

Commit

Permalink
Rename files, modify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hggutvik committed Nov 14, 2024
1 parent 283e27f commit 33b14e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Altinn.Notifications.Integrations.Profile.Mappers;

/// <summary>
/// Extension class to map from DTO / Profile API model to domain model for UserContactPoints
/// Extension class to map user contact points from DTO to domain model
/// </summary>
public static class UserContactPointsDtoMapperExtension
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Altinn.Notifications.Integrations.Profile.Models;

/// <summary>
/// Data transfer object for the API model describing the availability of contact points for a user, received from the ProfileClient
/// DTO for user contact points received from the ProfileClient, describing the availability of contact points for a user
/// </summary>
public class UserContactPointsDto
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public void ToUserContactPoint_NullValues_MapsCorrectly()
{
UserId = null,
NationalIdentityNumber = null,
Email = null,
IsReserved = false,
Email = null,
MobileNumber = null
};

Expand All @@ -25,9 +25,9 @@ public void ToUserContactPoint_NullValues_MapsCorrectly()
// Assert
Assert.Equal(0, mappedResult.UserId);
Assert.Equal(string.Empty, mappedResult.NationalIdentityNumber);
Assert.False(mappedResult.IsReserved);
Assert.Equal(string.Empty, mappedResult.Email);
Assert.Equal(string.Empty, mappedResult.MobileNumber);
Assert.False(mappedResult.IsReserved);
}

[Fact]
Expand Down

0 comments on commit 33b14e4

Please sign in to comment.