|
| 1 | +using DigitalLearningSolutions.Data.Models.Supervisor; |
| 2 | +using DigitalLearningSolutions.Data.Utilities; |
| 3 | +using System; |
| 4 | + |
| 5 | +namespace DigitalLearningSolutions.Web.Tests.TestHelpers |
| 6 | +{ |
| 7 | + public static class SupervisorTagTestHelper |
| 8 | + { |
| 9 | + private static readonly IClockUtility ClockUtility = new ClockUtility(); |
| 10 | + |
| 11 | + public static SupervisorDelegateDetail CreateDefaultSupervisorDelegateDetail( |
| 12 | + int id =1, |
| 13 | + string supervisorEmail = "[email protected]", |
| 14 | + string SupervisorName = "Supervisor", |
| 15 | + int? supervisorAdminID = 1, |
| 16 | + int centreId = 101, |
| 17 | + string delegateEmail = "[email protected]", |
| 18 | + int? delegateUserID = 1, |
| 19 | + bool addedByDelegate = false, |
| 20 | + DateTime? removed = null, |
| 21 | + string? firstName = null, |
| 22 | + string? lastName = null, |
| 23 | + string candidateNumber = "DELEGATE", |
| 24 | + string candidateEmail = "[email protected]", |
| 25 | + string? jobGroupName =null, |
| 26 | + string? customPrompt1 =null, |
| 27 | + string? answer1 = null, |
| 28 | + string? customPrompt2 = null, |
| 29 | + string? answer2 = null, |
| 30 | + string? customPrompt3 = null, |
| 31 | + string? answer3 = null, |
| 32 | + string? customPrompt4 = null, |
| 33 | + string? answer4 = null, |
| 34 | + string? customPrompt5 = null, |
| 35 | + string? answer5 = null, |
| 36 | + string? customPrompt6 = null, |
| 37 | + string? answer6 = null, |
| 38 | + string? supervisorName = null, |
| 39 | + int candidateAssessmentCount =0, |
| 40 | + Guid? InviteHash =null, |
| 41 | + bool delegateIsNominatedSupervisor = false, |
| 42 | + bool delegateIsSupervisor = false, |
| 43 | + string professionalRegistrationNumber = "string.Empty", |
| 44 | + int? delegateID = 0, |
| 45 | + bool? active =false |
| 46 | + ) |
| 47 | + { |
| 48 | + return new SupervisorDelegateDetail |
| 49 | + { |
| 50 | + ID = id, |
| 51 | + Active = active, |
| 52 | + FirstName = firstName, |
| 53 | + LastName = lastName, |
| 54 | + CentreId = centreId, |
| 55 | + CandidateAssessmentCount = candidateAssessmentCount, |
| 56 | + CandidateNumber = candidateNumber, |
| 57 | + CandidateEmail = candidateEmail, |
| 58 | + Answer1 = answer1, |
| 59 | + Answer2 = answer2, |
| 60 | + Answer3 = answer3, |
| 61 | + Answer4 = answer4, |
| 62 | + Answer5 = answer5, |
| 63 | + Answer6 = answer6, |
| 64 | + JobGroupName = jobGroupName, |
| 65 | + DelegateEmail = delegateEmail, |
| 66 | + DelegateID = delegateID, |
| 67 | + DelegateIsNominatedSupervisor= delegateIsNominatedSupervisor, |
| 68 | + DelegateIsSupervisor= delegateIsSupervisor, |
| 69 | + DelegateUserID = delegateUserID, |
| 70 | + SupervisorAdminID = supervisorAdminID, |
| 71 | + SupervisorEmail= supervisorEmail, |
| 72 | + SupervisorName = supervisorName, |
| 73 | + CustomPrompt1 = customPrompt1, |
| 74 | + CustomPrompt2 = customPrompt2, |
| 75 | + CustomPrompt3 = customPrompt3, |
| 76 | + CustomPrompt4 = customPrompt4, |
| 77 | + CustomPrompt5 = customPrompt5, |
| 78 | + CustomPrompt6 = customPrompt6, |
| 79 | + Removed = removed, |
| 80 | + InviteHash = InviteHash, |
| 81 | + ProfessionalRegistrationNumber = professionalRegistrationNumber, |
| 82 | + |
| 83 | + }; |
| 84 | + } |
| 85 | + |
| 86 | + public static DelegateSelfAssessment CreateDefaultDelegateSelfAssessment( |
| 87 | + int id = 1, |
| 88 | + int selfAssessmentID =6, |
| 89 | + int delegateUserID =1, |
| 90 | + string? roleName =null, |
| 91 | + bool supervisorSelfAssessmentReview =false, |
| 92 | + bool supervisorResultsReview = false, |
| 93 | + string? supervisorRoleTitle = "Assessor", |
| 94 | + DateTime? signedOffDate =null, |
| 95 | + bool signedOff = false, |
| 96 | + DateTime? completeByDate=null, |
| 97 | + int launchCount = 0, |
| 98 | + DateTime? completedDate =null, |
| 99 | + string? professionalGroup = null, |
| 100 | + string? questionLabel = null, |
| 101 | + string? descriptionLabel = null, |
| 102 | + string? reviewerCommentsLabel = null, |
| 103 | + string? subGroup = null, |
| 104 | + string? roleProfile = null, |
| 105 | + int signOffRequested =1, |
| 106 | + int resultsVerificationRequests =1, |
| 107 | + bool isSupervisorResultsReviewed =false, |
| 108 | + bool isAssignedToSupervisor = false, |
| 109 | + bool nonReportable = false |
| 110 | + ) |
| 111 | + { |
| 112 | + return new DelegateSelfAssessment { |
| 113 | + ID = id, |
| 114 | + SelfAssessmentID = selfAssessmentID, |
| 115 | + DelegateUserID = delegateUserID, |
| 116 | + ResultsVerificationRequests = resultsVerificationRequests, |
| 117 | + ReviewerCommentsLabel = reviewerCommentsLabel, |
| 118 | + SubGroup = subGroup, |
| 119 | + RoleProfile = roleProfile, |
| 120 | + SignOffRequested = signOffRequested, |
| 121 | + SupervisorResultsReview = supervisorResultsReview, |
| 122 | + SupervisorSelfAssessmentReview= supervisorSelfAssessmentReview, |
| 123 | + SignedOff = signedOff, |
| 124 | + CompleteByDate = completeByDate, |
| 125 | + LaunchCount = launchCount, |
| 126 | + CompletedDate = completedDate, |
| 127 | + SignedOffDate = signedOffDate, |
| 128 | + ProfessionalGroup = professionalGroup, |
| 129 | + QuestionLabel = questionLabel, |
| 130 | + DescriptionLabel = descriptionLabel, |
| 131 | + IsAssignedToSupervisor = isAssignedToSupervisor, |
| 132 | + NonReportable = nonReportable, |
| 133 | + IsSupervisorResultsReviewed= isSupervisorResultsReviewed, |
| 134 | + RoleName = roleName, |
| 135 | + SupervisorRoleTitle = supervisorRoleTitle, |
| 136 | + |
| 137 | + }; |
| 138 | + } |
| 139 | + |
| 140 | + } |
| 141 | +} |
0 commit comments