public LawnMower(int startX, int startY, CompassDirection initialHeading, ref ILawn lawn)
 {
     _heading = initialHeading;
     _lawn = lawn;
     XCord = startX;
     YCord = startY;
     _lawn.PlaceLawnMower(this, XCord, YCord);
 }
Ejemplo n.º 2
0
 public void Setup()
 {
     orient = Direction.North;
     loc    = new Location()
     {
         X = 0, Y = 0
     };
     _machine = new LawnMowerMachine(loc);
     _lawn    = new Lawn(_machine);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 4
0
 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)
 {
 }
Ejemplo n.º 6
0
 public Position(ILawn lawn, ICoordinates coordinates)
 {
     _lawn        = lawn;
     _coordinates = coordinates;
 }