-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implemented tests for notifications project #GCPActive
- Loading branch information
Showing
17 changed files
with
579 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/Altinn.Notifications/Models/EmailNotificationWithResultExt.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
using Altinn.Notifications.Models; | ||
|
||
namespace Altinn.Notifications.Core.Models.Notification | ||
{ | ||
/// <summary> | ||
/// EmailNotificationWithResultExt class | ||
/// </summary> | ||
public class EmailNotificationWithResultExt | ||
{ | ||
/// <summary> | ||
/// The notification id | ||
/// </summary> | ||
[JsonPropertyName("id")] | ||
public Guid Id { get; set; } | ||
|
||
/// <summary> | ||
/// Boolean indicating if the sending of the notification was successful | ||
/// </summary> | ||
[JsonPropertyName("succeeded")] | ||
public bool Succeeded { get; set; } | ||
|
||
/// <summary> | ||
/// The recipient of the notification | ||
/// </summary> | ||
[JsonPropertyName("recipient")] | ||
public RecipientExt Recipient { get; set; } = new(); | ||
|
||
/// <summary> | ||
/// The result status of the notification | ||
/// </summary> | ||
[JsonPropertyName("sendStatus")] | ||
public StatusExt SendStatus { get; set; } = new(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.