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); }
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); }
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); }
public Maze(IMazeGridGenerator mazeGridGenerator) => this.mazeGridGenerator = mazeGridGenerator.CheckIfNull(nameof(mazeGridGenerator));