public WordScenarios() { wordFacade = new Word2013Facade(); ribbonUI = new RibbonUITestDouble(); VstoContribLog.ToTrace(); VstoContribLog.SetLevel(VstoContribLogLevel.Debug); testAddInBase = new TestAddInBase(); sut = new WordRibbonFactory(testAddInBase); }
public ExcelScenario() { excelFacade = new Excel2013Facade(); ribbonUI = new RibbonUITestDouble(); VstoContribLog.ToTrace(); VstoContribLog.SetLevel(VstoContribLogLevel.Debug); testAddInBase = new TestAddInBase(); sut = new ExcelRibbonFactory(testAddInBase); }
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()) }); }