protected HostFactoryTest() { _globalSettings = Vim.GlobalSettings; _protectedOperations = new TestableProtectedOperations(); _mockFactory = new MockRepository(MockBehavior.Strict); _synchronizer = _mockFactory.Create<IEditorToSettingsSynchronizer>(MockBehavior.Strict); _vsEditorAdaptersFactoryService = _mockFactory.Create<IVsEditorAdaptersFactoryService>(); _vimApplicationSettings = _mockFactory.Create<IVimApplicationSettings>(MockBehavior.Loose); var vsAdapter = _mockFactory.Create<IVsAdapter>(); vsAdapter.SetupGet(x => x.EditorAdapter).Returns(_vsEditorAdaptersFactoryService.Object); _hostFactory = new HostFactory( Vim, _vsEditorAdaptersFactoryService.Object, _mockFactory.Create<IDisplayWindowBrokerFactoryService>(MockBehavior.Loose).Object, _mockFactory.Create<ITextManager>(MockBehavior.Loose).Object, vsAdapter.Object, _protectedOperations, new VimBufferCoordinatorFactory(Vim), _mockFactory.Create<IKeyUtil>(MockBehavior.Loose).Object, _synchronizer.Object, _vimApplicationSettings.Object, new Lazy<ICommandTargetFactory, IOrderable>[] { }); }
protected HostFactoryTest() { _protectedOperations = new TestableProtectedOperations(); _mockFactory = new MockRepository(MockBehavior.Strict); _synchronizer = _mockFactory.Create<IEditorToSettingsSynchronizer>(MockBehavior.Strict); _vsEditorAdaptersFactoryService = _mockFactory.Create<IVsEditorAdaptersFactoryService>(); var vsAdapter = _mockFactory.Create<IVsAdapter>(); vsAdapter.SetupGet(x => x.EditorAdapter).Returns(_vsEditorAdaptersFactoryService.Object); _hostFactory = new HostFactory( Vim, _vsEditorAdaptersFactoryService.Object, _mockFactory.Create<IResharperUtil>().Object, _mockFactory.Create<IDisplayWindowBrokerFactoryService>(MockBehavior.Loose).Object, _mockFactory.Create<ITextManager>(MockBehavior.Loose).Object, vsAdapter.Object, _protectedOperations, new VimBufferCoordinatorFactory(), _mockFactory.Create<IKeyUtil>(MockBehavior.Loose).Object, _synchronizer.Object); }