static void Main(string[] args) { var store = new CustomerStore(); // user wants to add a customer var createCustomerCommand = new CreateCustomerCommand(store, "Magesh"); createCustomerCommand.Execute(); }
public CreateCustomerCommand(CustomerStore customerStore, string customerName) { _customerStore = customerStore; _customerName = customerName; }