public QueuedTestItem(Test test, IExecutionQueue queue, IScreenConductor shell) : this() { linkText.Content = test.LocatorPath(); link.Click += (x, y) => shell.OpenScreen(test); stop.Click += (x, y) => queue.Cancel(test); }
public StatusPresenter(IStatusView view, IScreenConductor shell, GrammarErrorsSubject errors, IExecutionQueue queue) { _view = view; _conductor = shell; _errors = errors; _queue = queue; }
public ExplorerView(TreeView testTree, TreeView fixtureTree, IScreenConductor conductor, IScreenObjectLocator screenObjects) { _testTree = testTree; _fixtureTree = fixtureTree; _conductor = conductor; _screenObjects = screenObjects; _testTree.MouseDoubleClick += unLatch; }
public ProjectController(IProjectPersistor persistor, IScreenConductor shell, IEventAggregator events, IProjectHistory history, IProjectExplorerView view, IFileDialogPicker filePicker) { _persistor = persistor; _conductor = shell; _events = events; _history = history; _view = view; _filePicker = filePicker; }
public NewProjectPresenter(IProjectController controller, IScreenConductor conductor, IProjectValidator validator, IProjectScreen view) { _controller = controller; _conductor = conductor; _validator = validator; _view = view; _project = new Project(); _view.BindTo(_project); _save = new ActionCommand(save); _cancel = new ActionCommand(cancel); }
public virtual void Activated(IScreenConductor controller, string name) { this.Conductor = controller; this.Name = name; }
protected override void Given() { conductor = new Mock <IScreenConductor>().Object; ObjectFactory.Container.Inject(conductor); SubjectUnderTest.Register("Add Product").ToScreen <TestScreen>(); }
public QueuedItemFactory(IExecutionQueue queue, IScreenConductor shell) { _queue = queue; _shell = shell; }
public void SetUp() { container = new Container(); view = new StubExplorerView(); shellConductor = MockRepository.GenerateMock<IScreenConductor>(); explorer = new FixtureExplorer(view, container); library = new FixtureLibrary(); FixtureGraph fixture1 = library.FixtureFor("Math"); fixture1.AddStructure("Grammar1", new Sentence()); fixture1.AddStructure("Grammar2", new Sentence()); fixture1.AddStructure("Grammar3", new Sentence()); FixtureGraph fixture2 = library.FixtureFor("Arithmetic"); fixture2.AddStructure("Grammar4", new Sentence()); fixture2.AddStructure("Grammar5", new Sentence()); explorer.Handle(new BinaryRecycleFinished(library)); }