/// <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(); }
/// <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); }
public void SetUp() { _bank = Bank.BankFlyweight.BankFactory.GetBank("DNB"); _bazaar = new Bazaar(); _customer = new Customer(1, "TestyTest", _bank, _bazaar); }