Ejemplo n.º 1
0
        public static KeyValuePair <Taal, string> GetDefaultMunicipalityName(MunicipalityBosaItem municipality)
        {
            switch (municipality.PrimaryLanguage)
            {
            default:
            case Taal.NL:
                return(new KeyValuePair <Taal, string>(Taal.NL, municipality.NameDutch));

            case Taal.FR:
                return(new KeyValuePair <Taal, string>(Taal.FR, municipality.NameFrench));

            case Taal.DE:
                return(new KeyValuePair <Taal, string>(Taal.DE, municipality.NameGerman));

            case Taal.EN:
                return(new KeyValuePair <Taal, string>(Taal.EN, municipality.NameEnglish));
            }
        }
Ejemplo n.º 2
0
        public static VolledigAdres GetVolledigAdres(string houseNumber, string boxNumber, string postalCode, StreetNameBosaItem streetName, MunicipalityBosaItem municipality)
        {
            var defaultMunicipalityName = GetDefaultMunicipalityName(municipality);

            return(new VolledigAdres(
                       GetDefaultStreetNameName(streetName, municipality.PrimaryLanguage).Value,
                       houseNumber,
                       boxNumber,
                       postalCode,
                       defaultMunicipalityName.Value,
                       defaultMunicipalityName.Key));
        }