public void GivenIHaveAMulti_DayHearingConfirmationForALipEmailNotificationRequest()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.HearingConfirmationLipMultiDay;
            var parameters   = InitGenericConfirmationMultiParams();

            parameters.Add("name", $"{Faker.Name.FullName()}");
            _context.CreateNotificationRequest = AddNotificationRequestBuilder.BuildRequest(messageType, templateType, parameters);
        }
Ejemplo n.º 2
0
        public void GivenIHaveAMulti_DayHearingConfirmationForAJohEmailNotificationRequest()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.HearingConfirmationJohMultiDay;
            var parameters   = InitGenericAmendmentParams();

            parameters.Add("judicial office holder", $"{Faker.Name.FullName()}");
            _context.CreateNotificationRequest = AddNotificationRequestBuilder.BuildRequest(messageType, templateType, parameters);
        }
        public void GivenIHaveAHearingAmendmentForALipEmailNotificationRequest()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.HearingAmendmentLip;
            var parameters   = InitGenericAmendmentParams();

            parameters.Add("name", $"{Faker.Name.FullName()}");
            _context.CreateNotificationRequest = AddNotificationRequestBuilder.BuildRequest(messageType, templateType, parameters);
        }
        public void GivenIHaveAMulti_DayHearingConfirmationForAStaffMemberEmailNotificationRequest()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.HearingConfirmationStaffMemberMultiDay;
            var parameters   = InitGenericConfirmationMultiParams();

            parameters.Add("staff member", $"{Faker.Name.Last()}");
            parameters.Add("username", Faker.Internet.Email());
            _context.CreateNotificationRequest = AddNotificationRequestBuilder.BuildRequest(messageType, templateType, parameters);
        }
Ejemplo n.º 5
0
        public void GivenIHaveAMulti_DayHearingConfirmationForARepresentativeEmailNotificationRequest()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.HearingConfirmationRepresentativeMultiDay;
            var parameters   = InitGenericAmendmentParams();

            parameters.Add("solicitor name", $"{Faker.Name.FullName()}");
            parameters.Add("client name", $"{Faker.Name.FullName()}");
            _context.CreateNotificationRequest = AddNotificationRequestBuilder.BuildRequest(messageType, templateType, parameters);
        }
        public void GivenIHaveAHearingConfirmationForAnEjudJudgeEmailNotificationRequest()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.HearingConfirmationEJudJudge;
            var parameters   = InitGenericConfirmationParams();

            parameters.Add("judge", $"{Faker.Name.FullName()}");
            _context.CreateNotificationRequest =
                AddNotificationRequestBuilder.BuildRequest(messageType, templateType, parameters);
        }
        public void GivenIHaveAHearingAmendmentForAJudgeEmailNotificationRequest()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.HearingAmendmentJudge;
            var parameters   = InitGenericAmendmentParams();

            parameters.Add("judge", $"{Faker.Name.FullName()}");
            parameters.Add("courtroom account username", Faker.Internet.Email());
            _context.CreateNotificationRequest = AddNotificationRequestBuilder.BuildRequest(messageType, templateType, parameters);
        }
        public void GivenIHaveAHearingAmendmentForAStaffMemberEmailNotificationRequest()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.HearingAmendmentStaffMember;
            var parameters   = InitGenericAmendmentParams();

            parameters.Add("staff member", $"{Faker.Name.FullName()}");
            var request = AddNotificationRequestBuilder.BuildRequest(messageType, templateType, parameters);

            InitCreateNotificationRequest(request, _context);
        }
Ejemplo n.º 9
0
        public void GivenIHaveAHearingReminderForAnEJudJohEmailNotificationRequest()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.HearingReminderEJudJoh;
            var parameters   = InitGenericAmendmentParams();

            parameters.Add("judicial office holder", $"{Faker.Name.FullName()}");
            var request = AddNotificationRequestBuilder.BuildRequest(messageType, templateType, parameters);

            InitCreateNotificationRequest(request, _context);
        }
        public void GivenIHaveATelephoneHearingConfirmationForAnEmailNotificationRequest()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.TelephoneHearingConfirmation;
            var parameters   = InitGenericConfirmationParams();

            parameters.Add("name", $"{Faker.Name.FullName()}");
            var request = AddNotificationRequestBuilder.BuildRequest(messageType, templateType, parameters);

            InitCreateNotificationRequest(request, _context);
        }
        private AddNotificationRequest BuildNewUserNotificationRequest(MessageType messageType, NotificationType notificationType)
        {
            var parameters = new Dictionary <string, string>
            {
                { "name", $"{Faker.Name.FullName()}" },
                { "username", $"{Guid.NewGuid()}@intautomation.com" },
                { "random password", "inttestpassword!" }
            };

            return(AddNotificationRequestBuilder.BuildRequest(messageType, notificationType, parameters));
        }
Ejemplo n.º 12
0
        public void Given_I_Have_A_Request_To_Create_An_Email_Notification_For_Password_Reset()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.PasswordReset;
            var parameters   = new Dictionary <string, string>
            {
                { "name", Faker.Name.FullName() },
                { "password", "ACTestPasswordReset!" }
            };

            _context.CreateNotificationRequest = AddNotificationRequestBuilder.BuildNonHearingRequest(messageType, templateType, parameters);
        }
Ejemplo n.º 13
0
        public void GivenIHaveAMulti_DayHearingConfirmationForAJudgeEmailNotificationRequest()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.HearingConfirmationJudgeMultiDay;
            var parameters   = InitGenericConfirmationMultiParams();

            parameters.Add("judge", $"{Faker.Name.FullName()}");
            parameters.Add("courtroom account username", Faker.Internet.Email());
            var request = AddNotificationRequestBuilder.BuildRequest(messageType, templateType, parameters);

            InitCreateNotificationRequest(request, _context);
        }
Ejemplo n.º 14
0
        private AddNotificationRequest BuildNewIndividualNotificationRequest(MessageType messageType)
        {
            var parameters = new Dictionary <string, string>
            {
                { "name", $"{Faker.Name.FullName()}" },
                { "username", $"{Guid.NewGuid().ToString()}@automation.com" },
                { "random password", "testpassword!" }
            };

            return(AddNotificationRequestBuilder.BuildRequest(messageType, NotificationType.CreateIndividual,
                                                              parameters));
        }
        public void GivenIHaveAHearingAmendmentForAnEjudJudgeDemoOrTestEmailNotificationRequest()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.EJudJudgeDemoOrTest;
            var parameters   = InitGenericAmendmentParams();

            parameters.Add("test type", $"{Faker.Name.FullName()}");
            parameters.Add("date", "15 February 2021");
            parameters.Add("time", "12:15pm");
            parameters.Add("Judge", $"{Faker.Name.FullName()}");
            _context.CreateNotificationRequest = AddNotificationRequestBuilder.BuildRequest(messageType, templateType, parameters);
        }
Ejemplo n.º 16
0
        public void GivenIHaveAHearingReminderForARepresentativeEmailNotificationRequest()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.HearingReminderRepresentative;
            var parameters   = InitGenericAmendmentParams();

            parameters.Add("solicitor name", $"{Faker.Name.FullName()}");
            parameters.Add("client name", $"{Faker.Name.FullName()}");
            var request = AddNotificationRequestBuilder.BuildRequest(messageType, templateType, parameters);

            InitCreateNotificationRequest(request, _context);
        }
        public void I_have_a_valid_password_reset_email_notification_request()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.PasswordReset;
            var parameters   = new Dictionary <string, string>
            {
                { "name", $"{Faker.Name.FullName()}" },
                { "password", "inttestpassword!" }
            };
            var request = AddNotificationRequestBuilder.BuildNonHearingRequest(messageType, templateType, parameters);

            InitCreateNotificationRequest(request, _context);
        }
        public void GivenIHaveAHearingAmendmentForAJudgeDemoOrTestEmailNotificationRequest()
        {
            var messageType  = MessageType.Email;
            var templateType = NotificationType.JudgeDemoOrTest;
            var parameters   = InitGenericAmendmentParams();

            parameters.Add("test type", $"{Faker.Name.FullName()}");
            parameters.Add("date", "15 February 2021");
            parameters.Add("time", "12:15pm");
            parameters.Add("Judge", $"{Faker.Name.FullName()}");
            parameters.Add("courtroom account username", Faker.Internet.Email());
            var request = AddNotificationRequestBuilder.BuildRequest(messageType, templateType, parameters);

            InitCreateNotificationRequest(request, _context);
        }