public RemovedLearnerService(ActorService actorService, ActorId actorId, IRemovedLearnerAimIdentificationService removedLearnerAimIdentificationService) : base(actorService, actorId) { this.removedLearnerAimIdentificationService = removedLearnerAimIdentificationService; if (!long.TryParse(actorId.ToString(), out ukprn)) { throw new InvalidCastException($"Unable to cast Actor Id {Id} to valid ukprn"); } }
public RemovedLearnerService(ActorService actorService, ActorId actorId, IRemovedLearnerAimIdentificationService removedLearnerAimIdentificationService) : base(actorService, actorId) { this.removedLearnerAimIdentificationService = removedLearnerAimIdentificationService; ukprn = actorId.GetLongId(); }