refactor: rename some AssetHelpers.CreateAsset() methods to CreateNotecardAsset()

remove-scene-viewer
Justin Clark-Casey (justincc) 2011-10-22 00:13:46 +01:00
parent a1f05a289d
commit 9b3bbedeea
4 changed files with 10 additions and 10 deletions

View File

@ -75,7 +75,7 @@ namespace OpenSim.Region.CoreModules.Asset.Tests
TestHelpers.InMethod();
// log4net.Config.XmlConfigurator.Configure();
AssetBase asset = AssetHelpers.CreateAsset();
AssetBase asset = AssetHelpers.CreateNotecardAsset();
asset.ID = TestHelpers.ParseTail(0x1).ToString();
// Check we don't get anything before the asset is put in the cache
@ -96,7 +96,7 @@ namespace OpenSim.Region.CoreModules.Asset.Tests
TestHelpers.InMethod();
// log4net.Config.XmlConfigurator.Configure();
AssetBase asset = AssetHelpers.CreateAsset();
AssetBase asset = AssetHelpers.CreateNotecardAsset();
asset.ID = TestHelpers.ParseTail(0x2).ToString();
m_cache.Store(asset);
@ -113,7 +113,7 @@ namespace OpenSim.Region.CoreModules.Asset.Tests
TestHelpers.InMethod();
// log4net.Config.XmlConfigurator.Configure();
AssetBase asset = AssetHelpers.CreateAsset();
AssetBase asset = AssetHelpers.CreateNotecardAsset();
asset.ID = TestHelpers.ParseTail(0x2).ToString();
m_cache.Store(asset);

View File

@ -104,7 +104,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
// We also need to add the texture to the asset service, otherwise the AvatarFactoryModule will tell
// ScenePresence.SendInitialData() to reset our entire appearance.
scene.AssetService.Store(AssetHelpers.CreateAsset(originalFace8TextureId));
scene.AssetService.Store(AssetHelpers.CreateNotecardAsset(originalFace8TextureId));
afm.SetAppearance(sp, originalTe, null);

View File

@ -40,9 +40,9 @@ namespace OpenSim.Tests.Common
/// Create a notecard asset with a random uuids and dummy text.
/// </summary>
/// <returns></returns>
public static AssetBase CreateAsset()
public static AssetBase CreateNotecardAsset()
{
return CreateAsset(UUID.Random());
return CreateNotecardAsset(UUID.Random());
}
/// <summary>
@ -50,7 +50,7 @@ namespace OpenSim.Tests.Common
/// </summary>
/// <param name="creatorId">/param>
/// <returns></returns>
public static AssetBase CreateAsset(UUID id)
public static AssetBase CreateNotecardAsset(UUID id)
{
return CreateAsset(id, AssetType.Notecard, "hello", UUID.Random());
}
@ -60,7 +60,7 @@ namespace OpenSim.Tests.Common
/// </summary>
/// <param name="creatorId">/param>
/// <returns></returns>
public static AssetBase CreateAsset(Scene scene, UUID creatorId)
public static AssetBase CreateNotecardAsset(Scene scene, UUID creatorId)
{
AssetBase asset = CreateAsset(UUID.Random(), AssetType.Notecard, "hello", creatorId);
scene.AssetService.Store(asset);

View File

@ -86,7 +86,7 @@ namespace OpenSim.Tests.Common
AssetBase asset = null;
if (type == InventoryType.Notecard)
asset = AssetHelpers.CreateAsset(scene, userId);
asset = AssetHelpers.CreateNotecardAsset(scene, userId);
else if (type == InventoryType.Object)
asset = AssetHelpers.CreateAsset(assetId, SceneHelpers.CreateSceneObject(1, userId));
else