コード例 #1
0
 /// <summary>
 /// Starts all Customer Threads
 /// </summary>
 /// <param name="bank"></param>
 /// <param name="bazaar"></param>
 public void StartAllCustomerThreads(Bank.BankFlyweight.Bank bank, Bazaar bazaar)
 {
     CreateAllCustomers(bank, bazaar);
     AddThreadsForAllCustomers();
     StartAllCustomerThreads();
 }
コード例 #2
0
 /// <summary>
 ///		Constructor
 /// </summary>
 /// <param name="amountOfCustomers">
 ///		Number of customer to be created
 /// </param>
 public Client(int amountOfCustomers)
 {
     _bank          = BankFactory.GetBank("DNB");
     _bazaar        = new Bazaar();
     _threadHandler = new ThreadHandler(amountOfCustomers);
 }
コード例 #3
0
 public void SetUp()
 {
     _bank     = Bank.BankFlyweight.BankFactory.GetBank("DNB");
     _bazaar   = new Bazaar();
     _customer = new Customer(1, "TestyTest", _bank, _bazaar);
 }