示例#1
0
 public AlgorithmRunner(IGraphParser graphParser, IAlgorithm algorithm)
 {
     this.graphParser = graphParser;
     this.algorithm = algorithm;
 }
 public RegionProcessor(IDataReader dataReader, IGraphParser graphParser, IRegionMapper regionMapper)
 {
     this._dataReader = dataReader;
     this._graphParser = graphParser;
     this._regionMapper = regionMapper;
 }
示例#3
0
 public AlgorithmRunner()
 {
     this.graphParser = new GraphParser();
     this.algorithm = new Algorithm();
 }
 public void Initialize()
 {
     this.graphParser = Substitute.For<IGraphParser>();
     this.algorithm = Substitute.For<IAlgorithm>();
     this.algorithmRunner = new AlgorithmRunner(this.graphParser, this.algorithm);
 }