public void ShouldGetEmployersByIds() { // Arrange. var employerIds = new List <int> { SeedData.Employers.AcmeCorp.EmployerId, SeedData.Employers.AwesomeInc.EmployerId }; // Act. var employers = _employerReadRepository.GetByIds(employerIds); // Assert. employers.Should().NotBeNull(); employers.Count.Should().Be(employerIds.Count); employers.All(employer => employerIds.Contains(employer.EmployerId)).Should().Be(true); }
public IEnumerable <Employer> GetEmployers(IEnumerable <int> employerIds, bool currentOnly = true) { return(_employerReadRepository.GetByIds(employerIds, currentOnly)); }