diff --git a/src/SFA.DAS.Commitments.Application/Commands/CohortApproval/EmployerApproveCohort/EmployerApproveCohortCommandHandler.cs b/src/SFA.DAS.Commitments.Application/Commands/CohortApproval/EmployerApproveCohort/EmployerApproveCohortCommandHandler.cs index 8ff4d52e71..ca1dae1730 100644 --- a/src/SFA.DAS.Commitments.Application/Commands/CohortApproval/EmployerApproveCohort/EmployerApproveCohortCommandHandler.cs +++ b/src/SFA.DAS.Commitments.Application/Commands/CohortApproval/EmployerApproveCohort/EmployerApproveCohortCommandHandler.cs @@ -75,15 +75,6 @@ await UpdateCommitment(commitment, haveBothPartiesApproved, message.UserId, mess if (commitment.HasTransferSenderAssigned) { await _cohortApprovalService.CreateTransferRequest(commitment, _messagePublisher); - - //var transferRequestId = await _commitmentRepository.StartTransferRequestApproval(commitment.Id, - // _cohortApprovalService.CurrentCostOfCohort(commitment), - // _cohortApprovalService.TrainingCourseSummaries(commitment)); - - //await _cohortApprovalService.PublishCommitmentRequiresApprovalByTransferSenderEventMessage( - // _messagePublisher, commitment, transferRequestId); - - //commitment.TransferApprovalStatus = TransferApprovalStatus.Pending; } await PublishApprovedMessage(commitment); diff --git a/src/SFA.DAS.Commitments.Application/Services/CohortApprovalService.cs b/src/SFA.DAS.Commitments.Application/Services/CohortApprovalService.cs index fc89feae06..2543556e90 100644 --- a/src/SFA.DAS.Commitments.Application/Services/CohortApprovalService.cs +++ b/src/SFA.DAS.Commitments.Application/Services/CohortApprovalService.cs @@ -31,7 +31,7 @@ internal class CohortApprovalService private readonly IApprenticeshipInfoService _apprenticeshipInfoService; private readonly ICommitmentsLogger _logger; - public CohortApprovalService(IApprenticeshipRepository apprenticeshipRepository, + internal CohortApprovalService(IApprenticeshipRepository apprenticeshipRepository, IApprenticeshipOverlapRules overlapRules, ICurrentDateTime currentDateTime, ICommitmentRepository commitmentRepository,