Ejemplo n.º 1
0
        public void GetPhoneFormat_GetSameAreaFormatForGermany_ReturnsGermanSameAreaFormat()
        {
            int    countryID = 49;
            string expected  = "G";

            PhoneNumberDataRegistry registryDataProvider = new PhoneNumberDataRegistry();
            string actual = registryDataProvider.GetPhoneFormat(countryID, DISTANCE_RULE.SameAreaRule);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
        public void GetPhoneFormat_GetInternationalFormatForGermany_ResturnsGermanInternationalFormat()
        {
            int    countryID = 49;
            string expected  = "00EFG";

            PhoneNumberDataRegistry registryDataProvider = new PhoneNumberDataRegistry();
            string actual = registryDataProvider.GetPhoneFormat(countryID, DISTANCE_RULE.InternationalRule);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 3
0
        public void GetPhoneFormat_GetCanonicalFormat_ReturnsCanonicalFormat()
        {
            int    countryID = 49;
            string expected  = PhoneNumberConstants.CANONICAL_FORMAT;

            PhoneNumberDataRegistry registryDataProvider = new PhoneNumberDataRegistry();
            string actual = registryDataProvider.GetPhoneFormat(countryID, DISTANCE_RULE.CANONICAL);

            Assert.AreEqual(expected, actual);
        }
        public void GetPhoneFormat_GetSameAreaFormatForGermany_ReturnsGermanSameAreaFormat()
        {
            int countryID = 49;
            string expected = "G";

            PhoneNumberDataRegistry registryDataProvider = new PhoneNumberDataRegistry();
            string actual = registryDataProvider.GetPhoneFormat(countryID, DISTANCE_RULE.SameAreaRule);

            Assert.AreEqual(expected, actual);
        }
        public void GetPhoneFormat_GetInternationalFormatForGermany_ResturnsGermanInternationalFormat()
        {
            int countryID = 49;
            string expected = "00EFG";

            PhoneNumberDataRegistry registryDataProvider = new PhoneNumberDataRegistry();
            string actual = registryDataProvider.GetPhoneFormat(countryID, DISTANCE_RULE.InternationalRule);

            Assert.AreEqual(expected, actual);
        }
        public void GetPhoneFormat_GetCanonicalFormat_ReturnsCanonicalFormat()
        {
            int countryID = 49;
            string expected = PhoneNumberConstants.CANONICAL_FORMAT;

            PhoneNumberDataRegistry registryDataProvider = new PhoneNumberDataRegistry();
            string actual = registryDataProvider.GetPhoneFormat(countryID, DISTANCE_RULE.CANONICAL);

            Assert.AreEqual(expected, actual);
        }