Esempio n. 1
0
        public void MapToNorthWest(string postcode)
        {
            //Arrange

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

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

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

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

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

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

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

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

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

            //Assert
            regionalTeam.Should().Be(RegionalTeam.YorkshireAndHumberside);
        }
Esempio n. 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);
        }
Esempio n. 7
0
        public void CaseInsensitive()
        {
            //Arrange
            const string sunderland = "sr2 9hz";

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

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

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

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