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; }
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(); }