/// <summary> /// Set up records needed for a requisition approval notification /// </summary> public void CreateNotificationData() { Requisition = jpData.CreateJobRequisition(Faker.Company.Name(), Faker.Company.Name()); RequisitionApprover = jpData.CreateApprovalChainRecord(Requisition.Id, LoginData.SuperUserName); ExpectedResult = new NotificationResult() { Title = Requisition.AdditionalTitle + " at " + Requisition.Location, PopupInfo = new NotificationPopupResult { FrameId = "MainContentsIFrame", Url = $"JobPostings-Edit.aspx?id={Requisition.Id}", Content = Requisition.AdditionalTitle } }; }
public void CreateNotificationData() { InterviewSeries = InterviewDataAccessor.CreateInterviewSeries(string.Join(" ", Faker.Lorem.Words(3))); InterviewTimeSlot = InterviewDataAccessor.CreateInterviewTimeSlot(InterviewSeries.Id); InterviewApplicant = InterviewDataAccessor.CreateInterviewApplicant(InterviewSeries.Id, InterviewTimeSlot.Id, ApplicantId); InterviewUser = InterviewDataAccessor.CreateInterviewUser(InterviewSeries.Id); ExpectedResult = new NotificationResult { Title = InterviewSeries.Title, PopupInfo = new NotificationPopupResult { FrameId = $"App{ApplicantId}", Url = $"AppProfile.aspx?AppNo={ApplicantId}", Content = "Sample Applicant" } }; }
/// <summary> /// Set up records needed for a formInbox notification /// </summary> public void CreateNotificationData() { _form = FormDataAccessor.CreateForm(string.Join(" ", Faker.Lorem.Words(3))); _formSent = FormDataAccessor.CreateFormSent(_form.Id); _wfStepInstance = WorkflowDataAccessor.CreateWorkflowStepInstance(_formSent.Id); _wfStepInstanceAssignee = WorkflowDataAccessor.CreateWorkflowStepInstanceAssignee(_wfStepInstance.Id, TargetUser); ExpectedResult = new NotificationResult() { Title = _form.Title, PopupInfo = new NotificationPopupResult { FrameId = "MainContentsIFrame", Url = $"EForm.aspx?src=admin&NoInstructions=1&ID={_formSent.Guid}", Content = string.Empty //TODO: Resolve data setup gap that is generating server error } }; ValidateNotificationExistsForFormSentId(); }