示例#1
0
 public HomeController()
 {
     lawnmowerCommander = new LawnmowerCommander();
     instructionsGenerator = new InstructionsGenerator();
 }
示例#2
0
 public HomeController(InstructionsGenerator instructionsGenerator, ILawnmowerCommander lawnmowerCommander)
 {
     this.instructionsGenerator = instructionsGenerator;
     this.lawnmowerCommander = lawnmowerCommander;
 }
 public void Setup()
 {
     instructionsGenerator = new InstructionsGenerator();
 }