mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
refactor: extract another test asset helper method
This commit is contained in:
@@ -35,6 +35,19 @@ namespace OpenSim.Tests.Common
|
||||
{
|
||||
public class AssetHelpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Create an asset from the given data
|
||||
/// </summary>
|
||||
/// <param name="assetUuid"></param>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
public static AssetBase CreateAsset(UUID assetUuid, string data)
|
||||
{
|
||||
AssetBase asset = new AssetBase(assetUuid, assetUuid.ToString(), (sbyte)AssetType.Object);
|
||||
asset.Data = Encoding.ASCII.GetBytes(data);
|
||||
return asset;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create an asset from the given scene object
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user