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

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

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