Beispiel #1
0
 public ActionsExecutionManager(IActionsManager actionsManager,
                                IActionsValidationManager actionsValidationManager,
                                IActionsTranslator actionsTranslator,
                                IRobotStatus robotStatus,
                                IUIRobotManager uiRobotManager,
                                ILogger logger)
 {
     ActionsManager           = actionsManager ?? throw new ArgumentNullException(nameof(actionsManager));
     ActionsValidationManager = actionsValidationManager ?? throw new ArgumentNullException(nameof(actionsValidationManager));
     ActionsTranslator        = actionsTranslator ?? throw new ArgumentNullException(nameof(actionsTranslator));
     RobotStatus    = robotStatus ?? throw new ArgumentNullException(nameof(robotStatus));
     UIRobotManager = uiRobotManager ?? throw new ArgumentNullException(nameof(uiRobotManager));
     Logger         = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Beispiel #2
0
 public UIBoardManager(IBoardStatus boardStatus,
                       IRobotStatus robotStatus,
                       IActionsManager actionsManager,
                       IActionsValidationManager actionsValidationManager,
                       IActionsExecutionManager actionsExecutionManager,
                       IActionsTranslator actionsTranslator)
 {
     BoardStatus              = boardStatus ?? throw new ArgumentNullException(nameof(boardStatus));
     RobotStatus              = robotStatus ?? throw new ArgumentNullException(nameof(robotStatus));
     ActionsManager           = actionsManager ?? throw new ArgumentNullException(nameof(actionsManager));
     ActionsValidationManager = actionsValidationManager ?? throw new ArgumentNullException(nameof(actionsValidationManager));
     ActionsExecutionManager  = actionsExecutionManager ?? throw new ArgumentNullException(nameof(actionsExecutionManager));
     ActionsTranslator        = actionsTranslator ?? throw new ArgumentNullException(nameof(actionsTranslator));
 }