public ModelValidator( ISyntaxTransformer syntaxTransformer, IVertexRepository repository) { _syntaxTransformer = syntaxTransformer; _repository = repository; }
public void InitializeContext() { repositoryMock = A.Fake<IVertexRepository>(); service = new RouteService(repositoryMock, new DijkstraRouteFinder()); }
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()); }