Exemplo n.º 1
0
        public void GetAllCentreSummariesForFindCentre_returns_expected_summary()
        {
            //When
            var summaries = centresDataService.GetAllCentreSummariesForFindCentre().ToList();

            //Then
            summaries.Should().HaveCount(315);
            summaries.Single(s => s.CentreId == 8) !.CentreName.Should().Be("Buckinghamshire Healthcare NHS Trust");
            summaries.Single(s => s.CentreId == 2) !.RegionName.Should().Be("North West");
            summaries.Single(s => s.CentreId == 190) !.Email.Should().BeNull();
            summaries.Single(s => s.CentreId == 205) !.Telephone.Should().Be("01895 238282");
        }