public List <JobInfo> ListJobs() { IJobCRUD jobRepo = new JobCRUDRepository(_context); JobCRUDService jobService = new JobCRUDService(); return(jobService.ListJobs(jobRepo)); }
public void ListJobsMockTest() { //Arrange IJobCRUD jobRepo = new JobCRUDRepositoryMock(); JobCRUDService jobService = new JobCRUDService(); //Act var result = jobService.ListJobs(jobRepo); //Assert Assert.NotNull(result); }