Exemplo n.º 1
0
    public MainWindow()
        : base(Gtk.WindowType.Toplevel)
    {
        Build();

        m_DocumentController = new DocumentController(new GtkWarningViewHelper(warningsScrolledWindow, warningsTreeView), new FileSystem(), new FileDialogHelper(), new GtkTextViewHelper(this.codeTextview), new Document());
        m_GeneratorController = new GeneratorController(new FileSystem(), new GtkResultViewHelper(resultsTreeview), new ClipBoardHelper(), new GtkTextViewHelper(this.detailsTextview));
    }
Exemplo n.º 2
0
        public void Setup()
        {
            m_Mockery = new Mockery();
            m_Document = new Document();
            m_TextViewHelper = m_Mockery.NewMock<ITextViewHelper>();
            m_FileSystem = m_Mockery.NewMock<IFileSystem>();
            m_FileDialogHelper = m_Mockery.NewMock<IFileDialogHelper>();
            m_WarningViewHelper = m_Mockery.NewMock<IWarningViewHelper>();

            Expect.Once.On(m_TextViewHelper).EventAdd("BufferChanged", Is.Anything);
            Expect.Once.On(m_WarningViewHelper).EventAdd("WarningActivated", Is.Anything);
            m_DocumentController = new DocumentController(m_WarningViewHelper, m_FileSystem, m_FileDialogHelper, m_TextViewHelper, m_Document);
        }