private void ConstructSut() { _context = new DeployerContext(_simKeys, _projSel, _display, _indicators.Object, _sound.Object, _netio, _net.Object, _webFactory.Object, _garbage.Object, _config.Object); _sut = new DeployerController(_context); _context.SetController(_sut); _sut.PreflightCheck(); }
public IDeployerController BuildDeploymentMode() { var charDisp = _factory.CreateCharacterDisplay(); var timeService = _factory.CreateTimeService(); var keys = _factory.CreateSimultaneousKeys(timeService); var webFactory = _factory.CreateWebRequestFactory(); var project = _factory.CreateProjectSelector(charDisp, _configService); var sound = _factory.CreateSound(); var webu = _factory.CreateWebUtility(_garbage); var network = _factory.CreateNetworkWrapper(); var indicators = new Indicators(_factory.CreateIndicatorKeyA(), _factory.CreateIndicatorKeyB(), _factory.CreateIndicatorSelect(), _factory.CreateIndicatorArm(), _factory.CreateIndicatorFire(), _factory.CreateIndicatorRunning(), _factory.CreateIndicatorSucceeded(), _factory.CreateIndicatorFailed()); var context = new DeployerContext(keys, project, charDisp, indicators, sound, webu, network, webFactory, _garbage, _configService); var controller = new DeployerController(context); context.SetController(controller); controller.PreflightCheck(); return(controller); }
public ProjectSelectState(DeployerContext context) : base(context) { }
public ReadyToDeployState(DeployerContext context) : base(context) { }
public NodeController(ILogger <NodeController> logger, DeployerContext context) { _logger = logger; _context = context; }
public InitState(DeployerContext context) : base(context) { }
public InitState(DeployerContext context) : base(context) { }
public FailureState(DeployerContext context) : base(context) { }
public TurnBothKeysState(DeployerContext context) : base(context) { }
public FailureState(DeployerContext context) : base(context) { }
protected DeployerStateBase(DeployerContext context) { Context = context; }
public SuccessState(DeployerContext context) : base(context) { }
public ProjectSelectState(DeployerContext context) : base(context) { }
public DeployingState(DeployerContext context) : base(context) { }
public SuccessState(DeployerContext context) : base(context) { }
public ReadyToDeployState(DeployerContext context) : base(context) { }
public DeployingState(DeployerContext context) : base(context) { }
protected DeployerStateBase(DeployerContext context) { Context = context; }
public AbortState(DeployerContext context) : base(context) { }
public AbortState(DeployerContext context) : base(context) { }
public WebhookController(ILogger <WebhookController> logger, DeployerContext context, IDeployerService deployer) { _logger = logger; _context = context; _deployer = deployer; }
public TurnBothKeysState(DeployerContext context) : base(context) { }