public void SetUp()
        {
            mocks = new MockRepository();
            IGui gui = StubFactory.CreateGuiStub(mocks);

            gui.Stub(g => g.ViewCommands).Return(mocks.Stub <IViewCommands>());
            mocks.ReplayAll();

            plugin = new RiskeerPlugin
            {
                Gui = gui
            };
            importInfo = plugin.GetImportInfos().First(i => i.DataType == typeof(HydraulicBoundaryDatabaseContext));
        }
Ejemplo n.º 2
0
 public void SetUp()
 {
     plugin     = new RiskeerPlugin();
     importInfo = plugin.GetImportInfos().First(i => i.DataType == typeof(FailureMechanismSectionsContext));
 }
Ejemplo n.º 3
0
 private static ImportInfo GetImportInfo(RiskeerPlugin plugin)
 {
     return(plugin.GetImportInfos().First(ii => ii.DataType == typeof(ForeshoreProfilesContext)));
 }