public override void Given()
        {
            var registrationLearnerDetails = new RegisteredLearnerDetails
            {
                ProfileId   = 1,
                Uln         = 1234567890,
                Firstname   = "Test First 1",
                Lastname    = "Test Last 1",
                DateofBirth = DateTime.UtcNow.AddYears(-40)
            };

            _registrationLearnerDetails = new List <RegisteredLearnerDetails> {
                registrationLearnerDetails
            };
            LearnerRecordService.GetPendingVerificationAndLearningEventsLearnersAsync().Returns(_registrationLearnerDetails);

            var apiResponse = new GetLearnerLearningEventsResponse {
                IncomingULN = registrationLearnerDetails.Uln.ToString(), FoundULN = registrationLearnerDetails.Uln.ToString()
            };

            PersonalLearningRecordApiClient.GetLearnerEventsAsync(Arg.Any <RegisteredLearnerDetails>()).Returns(apiResponse);

            _expectedResult = new LearnerVerificationAndLearningEventsResponse {
                IsSuccess = true, TotalCount = 1, LrsCount = 1, ModifiedCount = 1, SavedCount = 1
            };
            LearnerRecordService.ProcessLearnerRecordsAsync(Arg.Any <List <LearnerRecordDetails> >()).Returns(_expectedResult);
        }
        public override void Given()
        {
            _apiResponse = null;
            _registrationLearnerDetails = null;
            LearnerRecordService.GetPendingVerificationAndLearningEventsLearnersAsync().Returns(_registrationLearnerDetails);

            PersonalLearningRecordApiClient.GetLearnerEventsAsync(Arg.Any <RegisteredLearnerDetails>()).Returns(_apiResponse);

            _expectedResult = new LearnerVerificationAndLearningEventsResponse {
                IsSuccess = true, TotalCount = 0, LrsCount = 0, ModifiedCount = 0, SavedCount = 0
            };
            LearnerRecordService.ProcessLearnerRecordsAsync(Arg.Any <List <LearnerRecordDetails> >()).Returns(_expectedResult);
        }