Exemplo n.º 1
0
 public WordScenarios()
 {
     wordFacade = new Word2013Facade();
     ribbonUI   = new RibbonUITestDouble();
     VstoContribLog.ToTrace();
     VstoContribLog.SetLevel(VstoContribLogLevel.Debug);
     testAddInBase = new TestAddInBase();
     sut           = new WordRibbonFactory(testAddInBase);
 }
Exemplo n.º 2
0
 public ExcelScenario()
 {
     excelFacade = new Excel2013Facade();
     ribbonUI    = new RibbonUITestDouble();
     VstoContribLog.ToTrace();
     VstoContribLog.SetLevel(VstoContribLogLevel.Debug);
     testAddInBase = new TestAddInBase();
     sut           = new ExcelRibbonFactory(testAddInBase);
 }
Exemplo n.º 3
0
        protected override Office.IRibbonExtensibility CreateRibbonExtensibilityObject()
        {
            //Required for WPF support
            if (System.Windows.Application.Current == null)
            {
                new Application {
                    ShutdownMode = ShutdownMode.OnExplicitShutdown
                }
            }
            ;

            VstoContribLog.ToTrace();
            VstoContribLog.SetLevel(VstoContribLogLevel.Debug);

            return(new ExcelRibbonFactory(this, typeof(AddinModule).Assembly)
            {
                ViewModelFactory = new AutofacViewModelFactory(new AddinModule())
            });
        }