示例#1
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);
 }
示例#2
0
 public LocationController(ILawnCommandsService commandService, ILawnQueyService queryService)
 {
     _lawnCommands = commandService;
     _lawnQuey     = queryService;
 }
示例#3
0
 public LawnController(ILawnCommandsService commandService, ILawnQueyService queryService)
 {
     _lawnCommands = commandService;
     _lawnQuey     = queryService;
     queryService.StatusChanged += QueryService_StatusChanged;
 }