Beispiel #1
0
        private static BankAccount SetupAccount()
        {
            var accountId = Guid.NewGuid();
            var card1Id   = Guid.NewGuid();
            var card2Id   = Guid.NewGuid();

            var account = new BankAccount(accountId, 1000);

            account.AddDebitCard(card1Id, "123-456");
            account.AddDebitCard(card2Id, "987-654");

            account.SwipeDebitCard(card1Id, "Amazon", 35);
            account.SwipeDebitCard(card2Id, "Grocery store", 120);
            account.SwipeDebitCard(card1Id, "Gas station", 45);

            return(account);
        }