public void GetAll_MultipleApplications_AllJobApplications()
        {
            // Arrange
            foreach (JobApplicationEntity jobApplication in _jobApplicationEntities)
            {
                _jobApplicationDbContext.JobApplications.Add(jobApplication);
            }

            _jobApplicationDbContext.SaveChanges();

            // Act
            IQueryable <JobApplicationEntity> result = _jobApplicationRepository.GetAll();

            // Assert
            Assert.Equal(_jobApplicationEntities, result.ToArray());
        }
Exemple #2
0
 public async Task <List <JobApplication> > GetAll()
 {
     return(await _repository.GetAll());
 }