diff --git a/NotificationApi/NotificationApi.AcceptanceTests/ApiTests/GetTemplateTests.cs b/NotificationApi/NotificationApi.AcceptanceTests/ApiTests/GetTemplateTests.cs index 0ccf17c5..0132abf7 100644 --- a/NotificationApi/NotificationApi.AcceptanceTests/ApiTests/GetTemplateTests.cs +++ b/NotificationApi/NotificationApi.AcceptanceTests/ApiTests/GetTemplateTests.cs @@ -37,7 +37,6 @@ public class GetTemplateTests : AcApiTest [TestCase(NotificationType.EJudJudgeDemoOrTest)] [TestCase(NotificationType.TelephoneHearingConfirmation)] [TestCase(NotificationType.TelephoneHearingConfirmationMultiDay)] - [TestCase(NotificationType.CreateStaffMember)] [TestCase(NotificationType.HearingAmendmentStaffMember)] [TestCase(NotificationType.HearingConfirmationStaffMember)] [TestCase(NotificationType.HearingConfirmationStaffMemberMultiDay)] @@ -51,6 +50,8 @@ public class GetTemplateTests : AcApiTest [TestCase(NotificationType.NewUserLipConfirmationMultiDay)] [TestCase(NotificationType.ExistingUserLipConfirmation)] [TestCase(NotificationType.ExistingUserLipConfirmationMultiDay)] + [TestCase(NotificationType.NewHearingReminderLipSingleDay)] + [TestCase(NotificationType.NewHearingReminderLipMultiDay)] public async Task should_return_okay_and_template(NotificationType notificationType) { // act diff --git a/NotificationApi/NotificationApi.Contract/NotificationType.cs b/NotificationApi/NotificationApi.Contract/NotificationType.cs index e5a57fa1..04e9bc4d 100644 --- a/NotificationApi/NotificationApi.Contract/NotificationType.cs +++ b/NotificationApi/NotificationApi.Contract/NotificationType.cs @@ -47,6 +47,8 @@ public enum NotificationType NewUserLipConfirmation = 42, NewUserLipConfirmationMultiDay = 43, ExistingUserLipConfirmation = 44, - ExistingUserLipConfirmationMultiDay = 45 + ExistingUserLipConfirmationMultiDay = 45, + NewHearingReminderLipSingleDay = 46, + NewHearingReminderLipMultiDay = 47 } } diff --git a/NotificationApi/NotificationApi.DAL/TemplateDataForEnvironments.cs b/NotificationApi/NotificationApi.DAL/TemplateDataForEnvironments.cs index 7219febd..3c430e6c 100644 --- a/NotificationApi/NotificationApi.DAL/TemplateDataForEnvironments.cs +++ b/NotificationApi/NotificationApi.DAL/TemplateDataForEnvironments.cs @@ -9,1546 +9,1732 @@ namespace NotificationApi.DAL [ExcludeFromCodeCoverage] public class TemplateDataForEnvironments { - private const string CASE_NAME__CASE_NUMBER__JUDICIAL_OFFICE_HOLDER__DAY_MONTH_YEAR__TIME__USERNAME = "case name, case number, judicial office holder, day month year, time, username"; - - private static Template CreateTemplate(string guid, NotificationType notificationType, MessageType messageType, string parameters) - { - return new Template(new Guid(guid), notificationType, - messageType, parameters); - } - private readonly IList