Exemplo n.º 1
0
 public LinkBuilder(IDateFormatter dateFormatter,
                    IOptions <BusConfig> busOptions, IOptions <RailwayConfig> railwayOptions)
 {
     busConfig          = busOptions.Value;
     railwayConfig      = railwayOptions.Value;
     this.dateFormatter = dateFormatter;
 }
Exemplo n.º 2
0
 public RailwayFinder(IHttpService httpService, IDateFormatter dateFormatter, IOptions <RailwayConfig> options,
                      IMapsService mapsService, ILinkBuilder linkBuilder)
 {
     this.httpService   = httpService;
     this.dateFormatter = dateFormatter;
     this.mapsService   = mapsService;
     this.linkBuilder   = linkBuilder;
     config             = options.Value;
 }