Пример #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 Provider GetProvider(int providerId)
 {
     return(_providerReadRepository.GetById(providerId));
 }