aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs13
1 files changed, 10 insertions, 3 deletions
diff --git a/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs b/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
index a6b9520..e6a7818 100644
--- a/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
+++ b/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
@@ -117,12 +117,19 @@ namespace OpenSim.Tests.Common.Setup
117 117
118 public static UserAccount CreateUserWithInventory(Scene scene) 118 public static UserAccount CreateUserWithInventory(Scene scene)
119 { 119 {
120 UUID userId = UUID.Parse("00000000-0000-0000-0000-000000000099"); 120 return CreateUserWithInventory(
121 UserAccount ua = new UserAccount(userId) { FirstName = "Bill", LastName = "Bailey" }; 121 scene, "Bill", "Bailey", UUID.Parse("00000000-0000-0000-0000-000000000099"), "troll");
122 }
123
124 public static UserAccount CreateUserWithInventory(
125 Scene scene, string firstName, string lastName, UUID userId, string pw)
126 {
127 UserAccount ua = new UserAccount(userId) { FirstName = firstName, LastName = lastName };
122 scene.UserAccountService.StoreUserAccount(ua); 128 scene.UserAccountService.StoreUserAccount(ua);
123 scene.InventoryService.CreateUserInventory(ua.PrincipalID); 129 scene.InventoryService.CreateUserInventory(ua.PrincipalID);
130 scene.AuthenticationService.SetPassword(ua.PrincipalID, pw);
124 131
125 return ua; 132 return ua;
126 } 133 }
127 } 134 }
128} \ No newline at end of file 135} \ No newline at end of file