public LawnMower(int startX, int startY, CompassDirection initialHeading, ref ILawn lawn) { _heading = initialHeading; _lawn = lawn; XCord = startX; YCord = startY; _lawn.PlaceLawnMower(this, XCord, YCord); }
public void Setup() { orient = Direction.North; loc = new Location() { X = 0, Y = 0 }; _machine = new LawnMowerMachine(loc); _lawn = new Lawn(_machine); }
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 Stage(ILawn lawn) { _lawn = lawn; MowersWithMovementInstructions = new List<Tuple<ILawnMower, string>>(); }
public LawnMowerWithPublicMethods(int startX, int startY, CompassDirection initHeading, ref ILawn lawn) : base(startX, startY, initHeading, ref lawn) { }
public Position(ILawn lawn, ICoordinates coordinates) { _lawn = lawn; _coordinates = coordinates; }