-
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.
Add SMS address point in NotificationOrderRequest for recipients with…
… only phone no. (#613) * Correct comment typo * In test, add recipient with only mobile phone no. to catch scenario of #608. Includes indentation formatting * When mapping order requests, also add SMS address points for phone no.
- Loading branch information
Showing
3 changed files
with
19 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,8 +140,8 @@ public void ForEmailMapToOrderRequest_RecipientsProvided_AreEquivalent() | |
NotificationChannel = NotificationChannel.Email, | ||
Recipients = new List<Recipient>() | ||
{ | ||
new Recipient() { AddressInfo = new List<IAddressPoint>() { new EmailAddressPoint("[email protected]") } }, | ||
new Recipient() { AddressInfo = new List<IAddressPoint>() { new EmailAddressPoint("[email protected]") } } | ||
new Recipient() { AddressInfo = new List<IAddressPoint>() { new EmailAddressPoint("[email protected]") } }, | ||
new Recipient() { AddressInfo = new List<IAddressPoint>() { new EmailAddressPoint("[email protected]") } } | ||
} | ||
}; | ||
|
||
|
@@ -222,8 +222,8 @@ public void ForSmsMapToOrderRequest_RecipientsProvided_AreEquivalent() | |
NotificationChannel = NotificationChannel.Sms, | ||
Recipients = new List<Recipient>() | ||
{ | ||
new Recipient() { AddressInfo = new List<IAddressPoint>() { new SmsAddressPoint("+4740000001") } }, | ||
new Recipient() { AddressInfo = new List<IAddressPoint>() { new SmsAddressPoint("+4740000002") } } | ||
new Recipient() { AddressInfo = new List<IAddressPoint>() { new SmsAddressPoint("+4740000001") } }, | ||
new Recipient() { AddressInfo = new List<IAddressPoint>() { new SmsAddressPoint("+4740000002") } } | ||
} | ||
}; | ||
|
||
|
@@ -289,7 +289,12 @@ public void MapToOrderRequest_AreEquivalent(NotificationChannelExt extChannel, N | |
{ | ||
Body = "sms-body", | ||
}, | ||
Recipients = new List<RecipientExt>() { new RecipientExt() { EmailAddress = "[email protected]" }, new RecipientExt() { NationalIdentityNumber = "123456" } }, | ||
Recipients = new List<RecipientExt>() | ||
{ | ||
new RecipientExt() { EmailAddress = "[email protected]" }, | ||
new RecipientExt() { NationalIdentityNumber = "123456" }, | ||
new RecipientExt() { MobileNumber = "+4712345678" } | ||
}, | ||
SendersReference = "senders-reference", | ||
RequestedSendTime = sendTime, | ||
ConditionEndpoint = new Uri("https://vg.no"), | ||
|
@@ -315,8 +320,9 @@ public void MapToOrderRequest_AreEquivalent(NotificationChannelExt extChannel, N | |
RequestedSendTime = sendTime, | ||
Recipients = new List<Recipient>() | ||
{ | ||
new Recipient() { AddressInfo = new List<IAddressPoint>() { new EmailAddressPoint("[email protected]") } }, | ||
new Recipient() { NationalIdentityNumber = "123456" } | ||
new Recipient() { AddressInfo = new List<IAddressPoint>() { new EmailAddressPoint("[email protected]") } }, | ||
new Recipient() { NationalIdentityNumber = "123456" }, | ||
new Recipient() { AddressInfo = new List<IAddressPoint>() { new SmsAddressPoint("+4712345678") } } | ||
}, | ||
ConditionEndpoint = new Uri("https://vg.no"), | ||
IgnoreReservation = true, | ||
|