Esempio n. 1
0
        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");
            }
        }
Esempio n. 2
0
 public RemovedLearnerService(ActorService actorService, ActorId actorId, IRemovedLearnerAimIdentificationService removedLearnerAimIdentificationService) : base(actorService, actorId)
 {
     this.removedLearnerAimIdentificationService = removedLearnerAimIdentificationService;
     ukprn = actorId.GetLongId();
 }