예제 #1
0
 public ExcelScenario()
 {
     excelFacade = new Excel2013Facade();
     ribbonUI = new RibbonUITestDouble();
     VstoContribLog.ToTrace();
     VstoContribLog.SetLevel(VstoContribLogLevel.Debug);
     testAddInBase = new TestAddInBase();
     sut = new ExcelRibbonFactory(testAddInBase);
 }
예제 #2
0
 public WordScenarios()
 {
     wordFacade = new Word2013Facade();
     ribbonUI = new RibbonUITestDouble();
     VstoContribLog.ToTrace();
     VstoContribLog.SetLevel(VstoContribLogLevel.Debug);
     testAddInBase = new TestAddInBase();
     sut = new WordRibbonFactory(testAddInBase);
 }
 public the_ribbon_factory()
 {
     viewProvider = Substitute.For<IViewProvider>();
     viewModelFactory = new TestViewModelFactory();
     testAddInBase = AddInBaseFactory.Create();
     if (Core.RibbonFactory.RibbonFactory.Current == null)
     {
         ribbonFactoryUnderTest = new TestRibbonFactory(
         testAddInBase,
         viewProvider,
         new TestContextProvider(),
         "Foo",
         Assembly.GetExecutingAssembly())
         {
             ViewModelFactory = viewModelFactory
         };
     }
     else
     {
         ribbonFactoryUnderTest = (TestRibbonFactory)Core.RibbonFactory.RibbonFactory.Current;
     }
 }