Ejemplo n.º 1
0
 public void Init()
 {
     this.mazeLoaderMock     = new Mock <IMazeLoader>();
     this.mazeValidatorMock  = new Mock <IMazeValidator>();
     this.mazePositionFinder = new Mock <IMazePositionFinder>();
     this.mazeGridGenerator  = new MazeGridGenerator(this.mazeLoaderMock.Object, this.mazeValidatorMock.Object, this.mazePositionFinder.Object);
 }
Ejemplo n.º 2
0
        public void Init()
        {
            string mazeFileName = "ExampleMaze.txt";

            this.mazeLoader         = new MazeFileLoader(mazeFileName);
            this.mazeValidtor       = new MazeValidator();
            this.mazePositionFinder = new MazePositionFinder();
            this.mazeGridGenerator  = new MazeGridGenerator(mazeLoader, mazeValidtor, mazePositionFinder);
            this.maze = new core.Maze(mazeGridGenerator);
        }
Ejemplo n.º 3
0
        public void Init()
        {
            string mazeFileName = "ExampleMazeSmall.txt";

            this.mazeLoader         = new MazeFileLoader(mazeFileName);
            this.mazeValidtor       = new MazeValidator();
            this.mazePositionFinder = new MazePositionFinder();
            this.mazeGridGenerator  = new MazeGridGenerator(mazeLoader, mazeValidtor, mazePositionFinder);
            this.maze             = new core.Maze(mazeGridGenerator);
            this.explorerPosition = new ExplorerPosition();
            this.movementAnalyser = new MovementAnalyser(this.explorerPosition, this.maze);
            this.moveHandler      = new MoveHandler(this.explorerPosition);
            this.explorer         = new Explorer(this.maze, this.movementAnalyser, this.moveHandler);
        }
Ejemplo n.º 4
0
 public Maze(IMazeGridGenerator mazeGridGenerator) => this.mazeGridGenerator = mazeGridGenerator.CheckIfNull(nameof(mazeGridGenerator));