コード例 #1
0
        static void Main(string[] args)
        {
            var store = new CustomerStore();
            // user wants to add a customer
            var createCustomerCommand = new CreateCustomerCommand(store, "Magesh");

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