コード例 #1
0
 public IPuzzleSolverTask Create(
     Action<int, IImmutableList<InternalRow>> onSolutionFound,
     Action<int> onNoSolutionFound,
     Action<int, IImmutableList<InternalRow>> onSearchStep)
 {
     PuzzleSolverTask = new MockPuzzleSolverTask(onSolutionFound, onNoSolutionFound, onSearchStep);
     return PuzzleSolverTask;
 }
コード例 #2
0
 public void SetUp()
 {
     _mockBoardControl = new Mock<IBoardControl>();
     _mockPuzzleSolverTaskFactory = new MockPuzzleSolverTaskFactory();
     _mockTimer = new MockTimer();
     _vm = new MainWindowViewModel(
         _mockBoardControl.Object,
         _mockPuzzleSolverTaskFactory,
         _mockTimer);
     _vm.LoadedCommand.Execute(null);
     _mockPuzzleSolverTask = _mockPuzzleSolverTaskFactory.PuzzleSolverTask;
 }