Ejemplo n.º 1
0
        public void ShouldGetProviderSite()
        {
            // Act.
            var edsUrn = SeedData.ProviderSites.HopwoodCampus.EdsUrn;
            var providerSiteByEdsUrn = _providerSiteReadRepository.GetByEdsUrn(edsUrn);

            // Assert.
            providerSiteByEdsUrn.Should().NotBeNull();
            providerSiteByEdsUrn.EdsUrn.Should().Be(edsUrn);

            // Act.
            var providerSiteById = _providerSiteReadRepository.GetById(providerSiteByEdsUrn.ProviderSiteId);

            // Assert.
            providerSiteById.Should().NotBeNull();
            providerSiteById.ShouldBeEquivalentTo(providerSiteByEdsUrn);
        }
 public ProviderSite GetProviderSite(int providerSiteId)
 {
     return(_providerSiteReadRepository.GetById(providerSiteId));
 }