13 references to _designerHostMock
System.Windows.Forms.Design.Tests (13)
System\Windows\Forms\Design\ChangeToolStripParentVerbTests.cs (13)
40
_siteMock = MockSite.CreateMockSiteWithDesignerHost(
_designerHostMock
.Object, MockBehavior.Loose);
42
_siteMock.Setup(s => s.GetService(typeof(IDesignerHost))).Returns(
_designerHostMock
.Object);
50
_siteMock.Setup(s => s.GetService(typeof(IDesignerHost))).Returns(
_designerHostMock
.Object);
54
_serviceProviderMock.Setup(s => s.GetService(typeof(IDesignerHost))).Returns(
_designerHostMock
.Object);
56
_designerHostMock
.Setup(h => h.RootComponent).Returns(_toolStrip);
57
_designerHostMock
.Setup(h => h.RootComponent).Returns(_toolStrip);
58
_designerHostMock
.Setup(h => h.CreateTransaction(It.IsAny<string>())).Returns(_mockTransaction.Object);
59
_designerHostMock
.Setup(h => h.GetService(typeof(IComponentChangeService))).Returns(_componentChangeServiceMock.Object);
60
_designerHostMock
.Setup(h => h.AddService(typeof(ToolStripKeyboardHandlingService), It.IsAny<object>()));
61
_designerHostMock
.Setup(h => h.AddService(typeof(ISupportInSituService), It.IsAny<object>()));
62
_designerHostMock
.Setup(h => h.AddService(typeof(DesignerActionService), It.IsAny<object>()));
63
_designerHostMock
.Setup(h => h.GetDesigner(_toolStrip)).Returns(_parentControlDesigner);
64
_designerHostMock
.Setup(h => h.AddService(typeof(DesignerActionUIService), It.IsAny<object>()));