public Lawn(ILawnMowerMachine mower) { Id = Guid.NewGuid(); Width = 0; Height = 0; MowingMachine = mower; MowingMachine.StatusChanged += MowingMachine_StatusChanged; }
public void Setup() { orient = Direction.North; loc = new Location() { X = 0, Y = 0 }; _machine = new LawnMowerMachine(loc); }
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(); }
public void Execute(ILawnMowerMachine machine) { machine.RotateLeft(); }
public void Execute(ILawnMowerMachine machine) { machine.MoveForward(MoveBy); }