From 9b3bbedeea5c6ea2421b36e5f0e23ab798870ba0 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Sat, 22 Oct 2011 00:13:46 +0100 Subject: refactor: rename some AssetHelpers.CreateAsset() methods to CreateNotecardAsset() --- OpenSim/Tests/Common/Helpers/AssetHelpers.cs | 8 ++++---- OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Tests/Common') diff --git a/OpenSim/Tests/Common/Helpers/AssetHelpers.cs b/OpenSim/Tests/Common/Helpers/AssetHelpers.cs index 99eb124..4839bcb 100644 --- a/OpenSim/Tests/Common/Helpers/AssetHelpers.cs +++ b/OpenSim/Tests/Common/Helpers/AssetHelpers.cs @@ -40,9 +40,9 @@ namespace OpenSim.Tests.Common /// Create a notecard asset with a random uuids and dummy text. /// /// - public static AssetBase CreateAsset() + public static AssetBase CreateNotecardAsset() { - return CreateAsset(UUID.Random()); + return CreateNotecardAsset(UUID.Random()); } /// @@ -50,7 +50,7 @@ namespace OpenSim.Tests.Common /// /// /param> /// - 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 /// /// /param> /// - 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); diff --git a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs index ceb7905..0de38c2 100644 --- a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs +++ b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs @@ -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 -- cgit v1.1