Exemple #1
0
        public RoverServiceFixture()
        {
            _plateauServiceMock  = new Mock <IPlateauService>();
            _roverCommandService = new RoverCommandService();
            _roverService        = new RoverService(_roverCommandService, _plateauServiceMock.Object);

            _plateauPosition = new Position {
                X = 5, Y = 5
            };

            _plateauServiceMock.Setup(x => x.SetPlateauPosition(_plateauPosition));
        }
Exemple #2
0
 public RoverService(IRoverCommandService roverCommandService,
                     IPlateauService plateauService)
 {
     _roverCommandService = roverCommandService;
     _plateauService      = plateauService;
 }