public CalculationDataContext(DataContext context, IFactorsService factorsService) { this.factorsService = factorsService; this.context = context; courierRouteDistances = new Lazy <IEnumerable <RouteDistance> >(factorsService.CourierRouteDistances); airRouteDistances = new Lazy <IEnumerable <RouteDistance> >(factorsService.AirRouteDistances); }
public CalculationDataContext(DataContext context, IFactorsService factorsService) { this.factorsService = factorsService; this.context = context; courierRouteDistances = new Lazy<IEnumerable<RouteDistance>>(factorsService.CourierRouteDistances); airRouteDistances = new Lazy<IEnumerable<RouteDistance>>(factorsService.AirRouteDistances); }