コード例 #1
0
        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"));
        }
コード例 #2
0
        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
            };
        }