示例#1
0
        public void CreateAccountTest()
        {
            _bank.CreateAccount(007);
            _bank.CreateAccount(008);
            _bank.CreateAccount(009);

            Assert.AreEqual(_bank.GetAccounts().Count, 3);
        }
示例#2
0
 /// <summary>
 ///		Constructor
 /// </summary>
 /// <param name="socialSecurityNumber">
 ///     Unique Identifier for customer
 /// </param>
 /// <param name="name">
 ///     Name of customer to be created
 /// </param>
 /// <param name="bank">
 ///     Object of bank to be used
 /// </param>
 /// <param name="bazaar">
 ///     Object of Bazaar to b used
 /// </param>
 public Customer(int socialSecurityNumber, string name, Bank.BankFlyweight.Bank bank, Bazaar bazaar)
 {
     Name = name;
     SocialSecurityNumber = socialSecurityNumber;
     ItemsPurchased       = new List <string>();
     _bazaar = bazaar;
     _bank   = bank;
     _bank.CreateAccount(SocialSecurityNumber);
 }