public void ContextMenuStrip_Always_CallsBuilder() { // Setup var mocks = new MockRepository(); var menuBuilder = mocks.StrictMock <IContextMenuBuilder>(); menuBuilder.Expect(mb => mb.AddPropertiesItem()).Return(menuBuilder); menuBuilder.Expect(mb => mb.Build()).Return(null); IGui gui = StubFactory.CreateGuiStub(mocks); using (var treeViewControl = new TreeViewControl()) { gui.Stub(g => g.Get(null, treeViewControl)).Return(menuBuilder); mocks.ReplayAll(); using (var p = new RiskeerPlugin()) { p.Gui = gui; TreeNodeInfo i = p.GetTreeNodeInfos().First(tni => tni.TagType == typeof(DikeProfile)); // Call i.ContextMenuStrip(null, null, treeViewControl); } } // Assert mocks.VerifyAll(); }
private static TreeNodeInfo GetInfo(RiskeerPlugin plugin) { return(plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(CalculationsStateRootContext))); }
private TreeNodeInfo GetInfo(RiskeerPlugin plugin) { return(plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(FailureMechanismSectionsContext))); }
public void SetUp() { plugin = new RiskeerPlugin(); info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(DikeProfile)); }
public void SetUp() { mocks = new MockRepository(); plugin = new RiskeerPlugin(); info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(GrassCoverSlipOffInwardsFailureMechanismContext)); }
private static TreeNodeInfo GetInfo(RiskeerPlugin plugin) { return(plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(HydraulicBoundaryDatabaseContext))); }
public void SetUp() { plugin = new RiskeerPlugin(); info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(WaterPressureAsphaltCoverFailureMechanismSectionResultContext)); }
public void SetUp() { mocks = new MockRepository(); plugin = new RiskeerPlugin(); info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(SpecificFailureMechanismContext)); }
private static TreeNodeInfo GetInfo(RiskeerPlugin plugin) { return(plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(WaterLevelCalculationsForNormTargetProbabilitiesGroupContext))); }
private static TreeNodeInfo GetInfo(RiskeerPlugin plugin) { return(plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(WaveHeightCalculationsForUserDefinedTargetProbabilitiesGroupContext))); }
private TreeNodeInfo GetInfo(RiskeerPlugin plugin) { return(plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(CategoryTreeFolder))); }
private static TreeNodeInfo GetInfo(RiskeerPlugin plugin) { return(plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(BackgroundData))); }
public void SetUp() { mocksRepository = new MockRepository(); plugin = new RiskeerPlugin(); info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(StructuresOutputContext)); }
private static TreeNodeInfo GetInfo(RiskeerPlugin plugin) { return(plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(AssemblyResultPerSectionContext))); }
private TreeNodeInfo GetInfo(RiskeerPlugin plugin) { return(plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(ReferenceLineContext))); }
private static TreeNodeInfo GetInfo(RiskeerPlugin plugin) { return(plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(AssessmentSectionAssemblyGroupsContext))); }
private TreeNodeInfo GetInfo(RiskeerPlugin plugin) { return(plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(AssessmentSectionStateRootContext))); }
public void SetUp() { plugin = new RiskeerPlugin(); info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(GrassCoverSlipOffOutwardsFailureMechanismSectionResultContext)); }
public void SetUp() { plugin = new RiskeerPlugin(); info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(PipingStructureFailureMechanismSectionResultContext)); }
private static TreeNodeInfo GetInfo(RiskeerPlugin plugin) { return(plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(GenericFailureMechanismsContext))); }
public void SetUp() { plugin = new RiskeerPlugin(); info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(ForeshoreProfilesContext)); }