public ApplicationState(IRobotFactory robotFactory, IProgramExecutionService programExecutionService) { var robots = robotFactory.GetRegisteredRobots(); RobotsList.Capacity = robots.Count(); foreach (var r in robots) { RobotsList.Add(new RobotState(programExecutionService, r, new RobotLog())); } }
private void FetchRobotsFromLibrary() { _logger.LogInfo("Fetching Robots from library"); _robots = _robotFactory.GetRegisteredRobots(); }