Example #1
0
 // Command pattern
 void manageTheBarn_Click(object sender, EventArgs e)
 {
     var barnManager = new BarnManager(new BarnAutomatorFactory());
     barnManager.ManageTheBarn();
 }
 public void Setup()
 {
     barnManager = new BarnManager(new BarnAutomatorFactory());
 }