diff options
Diffstat (limited to 'OpenSim/Tests/Common/Setup/AssetHelpers.cs')
-rw-r--r-- | OpenSim/Tests/Common/Setup/AssetHelpers.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/Setup/AssetHelpers.cs b/OpenSim/Tests/Common/Setup/AssetHelpers.cs index ff4423f..af66d7f 100644 --- a/OpenSim/Tests/Common/Setup/AssetHelpers.cs +++ b/OpenSim/Tests/Common/Setup/AssetHelpers.cs | |||
@@ -71,6 +71,21 @@ namespace OpenSim.Tests.Common | |||
71 | Encoding.ASCII.GetBytes(SceneObjectSerializer.ToOriginalXmlFormat(sog)), | 71 | Encoding.ASCII.GetBytes(SceneObjectSerializer.ToOriginalXmlFormat(sog)), |
72 | sog.OwnerID); | 72 | sog.OwnerID); |
73 | } | 73 | } |
74 | |||
75 | /// <summary> | ||
76 | /// Create an asset from the given scene object. | ||
77 | /// </summary> | ||
78 | /// <param name="assetUuid"></param> | ||
79 | /// <param name="coa"></param> | ||
80 | /// <returns></returns> | ||
81 | public static AssetBase CreateAsset(UUID assetUuid, CoalescedSceneObjects coa) | ||
82 | { | ||
83 | return CreateAsset( | ||
84 | assetUuid, | ||
85 | AssetType.Object, | ||
86 | Encoding.ASCII.GetBytes(CoalescedSceneObjectsSerializer.ToXml(coa)), | ||
87 | coa.CreatorId); | ||
88 | } | ||
74 | 89 | ||
75 | /// <summary> | 90 | /// <summary> |
76 | /// Create an asset from the given data. | 91 | /// Create an asset from the given data. |