public void AddCustomer(CustomerModel customerModel)
        {
            if (customerModel == null)
                throw new ArgumentNullException("customerModel");
            if (!_customers.Contains(customerModel)) {
                _customers.Add(customerModel);

                if (this.CustomerAdded != null)
                    this.CustomerAdded(this, new CustomerAddedEventArgs(customerModel));
            }
        }
 public CustomerAddedEventArgs(CustomerModel newCustomerModel)
 {
     this.NewCustomerModel = newCustomerModel;
 }
 public bool ContainsCustomer(CustomerModel customerModel)
 {
     if (customerModel == null)
         throw new ArgumentNullException("customerModel");
     return _customers.Contains(customerModel);
 }