public void GetNextBatchOfSOCsToImportTests(int batchSize) { //Arrange var dummySocs = GetSOCs(batchSize); var skillsImportService = new SkillsFrameworkDataImportService(fakeSkillsFrameworkService, fakeFrameworkSkillRepository, fakeJobProfileSocCodeRepository, fakeJobProfileRepository, fakeSocSkillMatrixRepository, fakeReportAuditRepository); A.CallTo(() => fakeSkillsFrameworkService.GetNextBatchSocMappingsForUpdate(batchSize)).Returns(dummySocs); // Act var result = skillsImportService.GetNextBatchOfSOCsToImport(batchSize); A.CallTo(() => fakeSkillsFrameworkService.GetNextBatchSocMappingsForUpdate(batchSize)).MustHaveHappenedOnceExactly(); result.Should().BeEquivalentTo(string.Join(",", dummySocs.ToList().Select(s => s.SOCCode))); }
public string GetNextBatchOfSOCsToImport(int batchsize) { var Socs = skillsFrameworkService.GetNextBatchSocMappingsForUpdate(batchsize); return(string.Join(",", Socs.ToList().Select(s => s.SOCCode))); }