Beispiel #1
0
        private void Transfer(AccountModuleTest accountModuleTest, int sender, int recipient, int amount)
        {
            var result = accountModuleTest.Transfer(sender, recipient, amount);

            Console.WriteLine($">>Transfer from {sender} to {recipient} Amount {amount}, result {result}");
            BalanceProvider.Print();
        }
Beispiel #2
0
        public void RunAccount()
        {
            var accountModuleTest = new AccountModuleTest();

            BalanceProvider.Print();
            Transfer(accountModuleTest, 2, 0, 65);
            Transfer(accountModuleTest, 0, 1, 10);
            Transfer(accountModuleTest, 0, 2, 15);
            Transfer(accountModuleTest, 0, 2, 10);
            Transfer(accountModuleTest, 4, 2, 10);
            Transfer(accountModuleTest, 3, 2, 50);
            Transfer(accountModuleTest, 2, 0, 65);
        }