Пример #1
0
 public Lawn(ILawnMowerMachine mower)
 {
     Id            = Guid.NewGuid();
     Width         = 0;
     Height        = 0;
     MowingMachine = mower;
     MowingMachine.StatusChanged += MowingMachine_StatusChanged;
 }
Пример #2
0
 public void Setup()
 {
     orient = Direction.North;
     loc    = new Location()
     {
         X = 0, Y = 0
     };
     _machine = new LawnMowerMachine(loc);
 }
Пример #3
0
 public void Setup()
 {
     _repository = new SlmmInMemoryRepository();
     _machine    = new LawnMowerMachine(loc);
     _lawn       = new Test.Domain.Lawn.Lawn(_machine);
     _lawnCmds   = new LawnCommandsService(_lawn, _repository);
     orient      = Direction.North;
     loc         = new Location()
     {
         X = 0, Y = 0
     };
     _lawnQuery = new LawnQueyService(_repository);
 }
 public void Execute(ILawnMowerMachine machine)
 {
     machine.MowLawn();
 }
Пример #5
0
 public void Execute(ILawnMowerMachine machine)
 {
     machine.RotateLeft();
 }
Пример #6
0
 public void Execute(ILawnMowerMachine machine)
 {
     machine.MoveForward(MoveBy);
 }