public the_view_model_resolver() { var testAddInBase = AddInBaseFactory.Create(); resolverFactory = vms => new ViewModelResolver( vms, new CustomTaskPaneRegister(testAddInBase), new TestContextProvider(), new VstoContribContext(new Assembly[0], testAddInBase, "Foo")); }
public the_ribbon_factory() { viewProvider = Substitute.For <IViewProvider>(); viewModelFactory = new TestViewModelFactory(); testAddInBase = AddInBaseFactory.Create(); ribbonFactoryUnderTest = new TestRibbonFactory( testAddInBase, viewProvider, new TestContextProvider(), "Foo", Assembly.GetExecutingAssembly()) { ViewModelFactory = viewModelFactory }; }