aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-05-28 21:37:48 +0100
committerJustin Clark-Casey (justincc)2010-05-28 21:37:48 +0100
commita60ca5236c247b88909a3c0462675627575b334c (patch)
tree1de95f0347da5e5566305561f30bbc601e7c0496 /OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
parentminor: move a method so that the #regions make more sense (diff)
downloadopensim-SC_OLD-a60ca5236c247b88909a3c0462675627575b334c.zip
opensim-SC_OLD-a60ca5236c247b88909a3c0462675627575b334c.tar.gz
opensim-SC_OLD-a60ca5236c247b88909a3c0462675627575b334c.tar.bz2
opensim-SC_OLD-a60ca5236c247b88909a3c0462675627575b334c.tar.xz
restore InventoryArchiverTests.TestReplicateArchivePathToUserInventory() to work with the new UserAccountService/InventoryService
Diffstat (limited to 'OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs')
-rw-r--r--OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs b/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
index 2b14d97..a6b9520 100644
--- a/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
+++ b/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
@@ -27,7 +27,8 @@
27 27
28using OpenMetaverse; 28using OpenMetaverse;
29using OpenSim.Framework.Communications; 29using OpenSim.Framework.Communications;
30 30using OpenSim.Region.Framework.Scenes;
31using OpenSim.Services.Interfaces;
31 32
32namespace OpenSim.Tests.Common.Setup 33namespace OpenSim.Tests.Common.Setup
33{ 34{
@@ -113,5 +114,15 @@ namespace OpenSim.Tests.Common.Setup
113// 114//
114// return userInfo; 115// return userInfo;
115// } 116// }
117
118 public static UserAccount CreateUserWithInventory(Scene scene)
119 {
120 UUID userId = UUID.Parse("00000000-0000-0000-0000-000000000099");
121 UserAccount ua = new UserAccount(userId) { FirstName = "Bill", LastName = "Bailey" };
122 scene.UserAccountService.StoreUserAccount(ua);
123 scene.InventoryService.CreateUserInventory(ua.PrincipalID);
124
125 return ua;
126 }
116 } 127 }
117} \ No newline at end of file 128} \ No newline at end of file