public StandControl(ILogger <StandControl> logger, IEventProducer eventProducer, ILocationService locationService)
 {
     this.logger        = logger;
     this.eventProducer = eventProducer;
     standRepo          = new LocationRepository <Stand>(locationService,
                                                         new LocationConverter <Stand>((x) => new Stand(x)));
     locationService.CalculateLocationDistances(standRepo.All());
 }
 public RideControl(ILogger <RideControl> logger, IEventProducer eventProducer, IVisitorClient visitorClient,
                    ILocationService locationService)
 {
     rideRepo = new LocationRepository <Ride>(locationService,
                                              new LocationConverter <Ride>((x) => new Ride(x)));
     this.logger        = logger;
     this.eventProducer = eventProducer;
     this.visitorClient = visitorClient;
     locationService.CalculateLocationDistances(rideRepo.All());
 }
        public FairyTaleControl(ILogger <FairyTaleControl> logger, IEventProducer eventProducer,
                                ILocationService locationService)
        {
            taleRepo = new LocationRepository <FairyTale>(locationService,
                                                          new LocationConverter <FairyTale>((obj) => new FairyTale(obj)));

            this.logger        = logger;
            this.eventProducer = eventProducer;

            locationService.CalculateLocationDistances(taleRepo.All());
        }
 public StandControl(ILogger <StandControl> logger, IEventProducer eventProducer,
                     Dictionary <Guid, Dinner> openDinnerOrders, Dictionary <Guid, DateTime> ordersDoneAtTime, ILocationService locationService)
 {
     this.logger           = logger;
     this.eventProducer    = eventProducer;
     this.openDinnerOrders = openDinnerOrders;
     this.ordersDoneAtTime = ordersDoneAtTime;
     standRepo             = new LocationRepository <Stand>(locationService,
                                                            new LocationConverter <Stand>((x) => new Stand(x)));
     locationService.CalculateLocationDistances(standRepo.All());
 }