Esempio n. 1
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);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash        = 100003;
            int secondPrime = 70001;

            //NO SE HACE VALIDACION DE VALORES NULOS DADO QUE LOS ATRIBUTOS SON OBLIGATORIOS
            hash = hash * secondPrime + AuthenticationData.GetHashCode();
            hash = hash * secondPrime + DeviceType.GetHashCode();
            hash = hash * secondPrime + Amount.GetHashCode();
            hash = hash * secondPrime + ExternalTransactionReference.GetHashCode();
            hash = hash * secondPrime + MNO.GetHashCode();
            hash = hash * secondPrime + Recipient.GetHashCode();
            return(hash);
        }