public MainCommandOption(IClientModel userClient, IContainerInterfaces containerInterfaces, CommandHandler commandHandler) { _commandHandler = commandHandler; _userClient = userClient; _containerInterfaces = containerInterfaces; _operationCommandFactory = new OperationCommandFactory(_userClient, _containerInterfaces, _commandHandler); }
public OperationViewModel(string name, Maybe <string> maybeDependencyName, string operationEntryParentComponentInstanceName, OperationCommandFactory operationCommandFactory, OperationPropertiesViewModelBuilder operationPropertiesViewModelBuilder, OperationStateMachine operationStateMachine) { Name = name; ComponentInstanceName = operationEntryParentComponentInstanceName; _propertyListBuilder = operationPropertiesViewModelBuilder; _maybeDependencyName = maybeDependencyName; _operationCommandFactory = operationCommandFactory; _operationStateMachine = operationStateMachine; if (_maybeDependencyName.HasValue) { _operationStateMachine.Initial(this); } else { _operationStateMachine.Ready(this); } }