aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tests')
-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