From f8aea3724da138107fc4121254e5eeea5f178aa0 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Fri, 23 Jan 2009 17:55:29 +0000
Subject: refactor: move test modules set up code to common function
---
OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
(limited to 'OpenSim/Tests')
diff --git a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs
index 11ebc86..74f177a 100644
--- a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs
+++ b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs
@@ -99,6 +99,23 @@ namespace OpenSim.Tests.Common.Setup
}
///
+ /// Setup the given modules for a given scene.
+ ///
+ ///
+ ///
+ ///
+ public static void SetupSceneModules(Scene scene, IConfigSource config, params IRegionModule[] modules)
+ {
+ foreach (IRegionModule module in modules)
+ {
+ module.Initialise(scene, config);
+ scene.AddModule(module.Name, module);
+ }
+
+ scene.SetModuleInterfaces();
+ }
+
+ ///
/// Generate some standard agent connection data.
///
///
--
cgit v1.1