예제 #1
0
        public void Init()
        {
            //The same object will be used for two cards so we are creating a scenario of a joint card.
            jointAccount = new Account(123456, 10f);

            //Card number should be ideally digits but for card recognition simulation,
            //we will make it four digits card.
            //Card 1

            card1 = new CashCard("4512", 2535);
            card1.LinkAccount(jointAccount); //Registering same account to both cards.

            //Card 1
            card2 = new CashCard("4513", 2535);
            card2.LinkAccount(jointAccount);
        }