public void ShouldUpdateProviderSite() { // Arrange. var edsUrn = SeedData.ProviderSites.HopwoodCampus.EdsUrn; var originalProvideSite = _providerSiteReadRepository.GetByEdsUrn(edsUrn); originalProvideSite.FullName = new string(originalProvideSite.FullName.Reverse().ToArray()); // Act. var updatedProviderSite = _providerSiteWriteRepository.Update(originalProvideSite); var newProviderSite = _providerSiteReadRepository.GetByEdsUrn(edsUrn); // Assert. newProviderSite.ShouldBeEquivalentTo(updatedProviderSite); newProviderSite.ShouldBeEquivalentTo(originalProvideSite); }
public ProviderSite SaveProviderSite(ProviderSite providerSite) { return(_providerSiteWriteRepository.Update(providerSite)); }