public void VerifyMobileOperator(string saf, string airtel, string telkom, string equitel)
        {
            MNO safaricom_result, airtel_result, telkom_result, equitel_test;

            safaricom_result = _phoneNumberFormatter.GetProvider(saf);
            airtel_result    = _phoneNumberFormatter.GetProvider(airtel);
            telkom_result    = _phoneNumberFormatter.GetProvider(telkom);
            equitel_test     = _phoneNumberFormatter.GetProvider(equitel);

            Assert.AreEqual(MNO.Safaricom, safaricom_result);
            Assert.AreEqual(MNO.Airtel, airtel_result);
            Assert.AreEqual(MNO.Telkom, telkom_result);
            Assert.AreEqual(MNO.Equitel, equitel_test);
        }
Exemplo n.º 2
0
        //test service provider
        private static void TestProvider(string number)
        {
            Console.WriteLine("Checking mobile operator for {0}", number);

            MNO result = phoneNumberFormatter.GetProvider(number);

            Console.WriteLine("Operator: {0}", result);
        }