Example #1
0
        public void MapToNorthWest(string postcode)
        {
            //Arrange

            //Act
            var regionalTeam = RegionalTeamMapper.GetRegionalTeam(postcode);

            //Assert
            regionalTeam.Should().Be(RegionalTeam.NorthWest);
        }
Example #2
0
        public void MapToEastAnglia(string postcode)
        {
            //Arrange

            //Act
            var regionalTeam = RegionalTeamMapper.GetRegionalTeam(postcode);

            //Assert
            regionalTeam.Should().Be(RegionalTeam.EastAnglia);
        }
Example #3
0
        public void InvalidPostcodeMapsToOther(string postcode)
        {
            //Arrange

            //Act
            var regionalTeam = RegionalTeamMapper.GetRegionalTeam(postcode);

            //Assert
            regionalTeam.Should().Be(RegionalTeam.Other);
        }
Example #4
0
        public void MapToWestMidlands(string postcode)
        {
            //Arrange

            //Act
            var regionalTeam = RegionalTeamMapper.GetRegionalTeam(postcode);

            //Assert
            regionalTeam.Should().Be(RegionalTeam.WestMidlands);
        }
Example #5
0
        public void MapToYorkshireAndHumberside(string postcode)
        {
            //Arrange

            //Act
            var regionalTeam = RegionalTeamMapper.GetRegionalTeam(postcode);

            //Assert
            regionalTeam.Should().Be(RegionalTeam.YorkshireAndHumberside);
        }
Example #6
0
        public void SpacesIgnored()
        {
            //Arrange
            const string sunderland = "s r 29 h z";

            //Act
            var regionalTeam = RegionalTeamMapper.GetRegionalTeam(sunderland);

            //Assert
            regionalTeam.Should().Be(RegionalTeam.North);
        }
Example #7
0
        public void CaseInsensitive()
        {
            //Arrange
            const string sunderland = "sr2 9hz";

            //Act
            var regionalTeam = RegionalTeamMapper.GetRegionalTeam(sunderland);

            //Assert
            regionalTeam.Should().Be(RegionalTeam.North);
        }
Example #8
0
        public void MapSunderlandToNorth()
        {
            //Arrange
            const string sunderland = "SR2 9HZ";

            //Act
            var regionalTeam = RegionalTeamMapper.GetRegionalTeam(sunderland);

            //Assert
            regionalTeam.Should().Be(RegionalTeam.North);
        }