示例#1
0
        public void ShouldGetProvider()
        {
            // Act.
            var provider = _providerReadRepository.GetByUkprn(SeedData.Providers.HopwoodHallCollege.Ukprn);

            // Assert.
            provider.Should().NotBeNull();

            // Act
            provider = _providerReadRepository.GetById(provider.ProviderId);

            // Assert.
            provider.Should().NotBeNull();

            // Act
            var providers = _providerReadRepository.GetByIds(new[] { provider.ProviderId });

            providers.Should().HaveCount(1);
            providers.First().ShouldBeEquivalentTo(provider);
        }
 public IEnumerable <Provider> GetProviders(IEnumerable <int> providerIds)
 {
     return(_providerReadRepository.GetByIds(providerIds));
 }