Exemplo n.º 1
0
        public void SetUp()
        {
            routeRepository        = Substitute.For <IRouteRepository>();
            graphCreator           = Substitute.For <IGraphCreator>();
            dijkstraImplementation = Substitute.For <IDijkstraImplementation>();

            dijkstraLowestPriceFinder = new DijkstraLowestPriceFinder(routeRepository, graphCreator, dijkstraImplementation);
        }
 public DijkstraLowestPriceFinder(IRouteRepository routeRepository, IGraphCreator graphCreator, IDijkstraImplementation dijkstraImplementation)
 {
     this.routeRepository        = routeRepository;
     this.graphCreator           = graphCreator;
     this.dijkstraImplementation = dijkstraImplementation;
 }