Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public StatusPresenter(IStatusView view, IScreenConductor shell, GrammarErrorsSubject errors,
                        IExecutionQueue queue)
 {
     _view      = view;
     _conductor = shell;
     _errors    = errors;
     _queue     = queue;
 }
Ejemplo n.º 3
0
        public ExplorerView(TreeView testTree, TreeView fixtureTree, IScreenConductor conductor,
                            IScreenObjectLocator screenObjects)
        {
            _testTree      = testTree;
            _fixtureTree   = fixtureTree;
            _conductor     = conductor;
            _screenObjects = screenObjects;

            _testTree.MouseDoubleClick += unLatch;
        }
Ejemplo n.º 4
0
        public ExplorerView(TreeView testTree, TreeView fixtureTree, IScreenConductor conductor,
            IScreenObjectLocator screenObjects)
        {
            _testTree = testTree;
            _fixtureTree = fixtureTree;
            _conductor = conductor;
            _screenObjects = screenObjects;

            _testTree.MouseDoubleClick += unLatch;
        }
Ejemplo n.º 5
0
 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;
 }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
        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);
        }
Ejemplo n.º 8
0
 public virtual void Activated(IScreenConductor controller, string name)
 {
     this.Conductor = controller;
     this.Name = name;
 }
Ejemplo n.º 9
0
 protected override void Given()
 {
     conductor = new Mock <IScreenConductor>().Object;
     ObjectFactory.Container.Inject(conductor);
     SubjectUnderTest.Register("Add Product").ToScreen <TestScreen>();
 }
Ejemplo n.º 10
0
 public QueuedItemFactory(IExecutionQueue queue, IScreenConductor shell)
 {
     _queue = queue;
     _shell = shell;
 }
Ejemplo n.º 11
0
        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));
        }
Ejemplo n.º 12
0
 public QueuedItemFactory(IExecutionQueue queue, IScreenConductor shell)
 {
     _queue = queue;
     _shell = shell;
 }