public void GetBalance_12345678_Exception()
        {
            MainSystem system = new MainSystem {
                Country = Country.Argentina
            };

            system.GetBalance(ArgentinaNumberPhone);
        }
        public void GetBalance_12345_Exception()
        {
            MainSystem system = new MainSystem {
                Country = Country.Argentina
            };

            system.GetBalance("12345");
        }
Esempio n. 3
0
        public void GetBalance_0DollarAccount_0Dollar()
        {
            MainSystem system = new MainSystem();

            system.MakeAccount("092555222");
            int actual   = system.GetBalance("092555222");
            int expected = 0;

            Assert.AreEqual(expected, actual);
        }
Esempio n. 4
0
        public void AddBalance_Add100Over0_GetterIs100()
        {
            MainSystem system = new MainSystem();

            system.MakeAccount("092088777");
            system.AddBalance("092088777", 100);
            int expected = 100;
            int actual   = system.GetBalance("092088777");

            Assert.AreEqual(expected, actual);
        }
        public void AddBalance_ARGPhoneX0_BalanceAdded()
        {
            MainSystem system = new MainSystem {
                Country = Country.Argentina
            };

            system.MakeAccount(ArgentinaNumberPhone);
            int actual   = system.GetBalance(ArgentinaNumberPhone);
            int expected = 0;

            Assert.AreEqual(expected, actual);
        }
        public void GetBalance_Add10Over0_10()
        {
            MainSystem system = new MainSystem {
                Country = Country.Argentina
            };

            system.MakeAccount("12345678");
            system.AddBalance("123-45678", 10);

            int actual   = system.GetBalance("12345678");
            int expected = 10;

            Assert.AreEqual(expected, actual);
        }
Esempio n. 7
0
        public void GetBalance_NotRegistered_Exception()
        {
            MainSystem system = new MainSystem();

            system.GetBalance("092555222");
        }
Esempio n. 8
0
        public void GetBalance_082111222_Exception()
        {
            MainSystem system = new MainSystem();

            system.GetBalance("082111222");
        }
Esempio n. 9
0
        public void GetBalance_empty_Exception()
        {
            MainSystem system = new MainSystem();

            system.GetBalance("");
        }