private async Task SetupApplicationAndApprenticeship(IncentiveApplicationStatus status) { _incentiveApplication.Status = status; await DataAccess.InsertWithEnumAsString(_incentiveApplication); await DataAccess.Insert(_incentiveApprenticeship); }
public IncentiveApplicationAudit( Guid id, Guid incentiveApplicationApprenticeshipId, IncentiveApplicationStatus process, ServiceRequest serviceRequest) { Id = id; IncentiveApplicationApprenticeshipId = incentiveApplicationApprenticeshipId; Process = process; ServiceRequest = serviceRequest; }
protected ApplicationWithdrawn( IncentiveApplicationStatus withdrawalStatus, long accountId, long accountLegalEntityId, ApprenticeshipModel model, ServiceRequest serviceRequest) { WithdrawalStatus = withdrawalStatus; AccountLegalEntityId = accountLegalEntityId; AccountId = accountId; Model = model; ServiceRequest = serviceRequest; }
public void Withdraw(IncentiveApplicationStatus incentiveApplicationStatus) { switch (incentiveApplicationStatus) { case IncentiveApplicationStatus.EmployerWithdrawn: Model.WithdrawnByEmployer = true; break; case IncentiveApplicationStatus.ComplianceWithdrawn: Model.WithdrawnByCompliance = true; break; default: throw new InvalidOperationException($"Unsupported IncentiveApplicationStatus:{incentiveApplicationStatus} for withdrawal"); } }