예제 #1
0
		public ModelValidator(
			ISyntaxTransformer syntaxTransformer, 
			IVertexRepository repository)
		{
			_syntaxTransformer = syntaxTransformer;
			_repository = repository;
		}
예제 #2
0
 public ModelValidator(
     ISyntaxTransformer syntaxTransformer,
     IVertexRepository repository)
 {
     _syntaxTransformer = syntaxTransformer;
     _repository        = repository;
 }
 public void InitializeContext()
 {
     repositoryMock = A.Fake<IVertexRepository>();
     service = new RouteService(repositoryMock, new DijkstraRouteFinder());
 }
예제 #4
0
 public RouteService(IVertexRepository vertexRepository, IRouteFinder routeFinder)
 {
     this.vertexRepository = vertexRepository;
     this.routeFinder = routeFinder;
 }
 public void initialize_repository()
 {
     repository = new VerticesRepository(ConfigurationManager.AppSettings, new FileReader());
     service = new RouteService(new VerticesRepository(ConfigurationManager.AppSettings, new FileReader()), new DijkstraRouteFinder());
 }