diff options
Diffstat (limited to 'OpenSim/Tests/Common/Helpers/UserAccountHelpers.cs')
-rw-r--r-- | OpenSim/Tests/Common/Helpers/UserAccountHelpers.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/Helpers/UserAccountHelpers.cs b/OpenSim/Tests/Common/Helpers/UserAccountHelpers.cs index b73df2c..2fbebc4 100644 --- a/OpenSim/Tests/Common/Helpers/UserAccountHelpers.cs +++ b/OpenSim/Tests/Common/Helpers/UserAccountHelpers.cs | |||
@@ -126,6 +126,11 @@ namespace OpenSim.Tests.Common | |||
126 | return CreateUserWithInventory(scene, "Bill", "Bailey", userId, "troll"); | 126 | return CreateUserWithInventory(scene, "Bill", "Bailey", userId, "troll"); |
127 | } | 127 | } |
128 | 128 | ||
129 | public static UserAccount CreateUserWithInventory(Scene scene, int userId) | ||
130 | { | ||
131 | return CreateUserWithInventory(scene, "Bill", "Bailey", TestHelpers.ParseTail(userId), "troll"); | ||
132 | } | ||
133 | |||
129 | public static UserAccount CreateUserWithInventory( | 134 | public static UserAccount CreateUserWithInventory( |
130 | Scene scene, string firstName, string lastName, UUID userId, string pw) | 135 | Scene scene, string firstName, string lastName, UUID userId, string pw) |
131 | { | 136 | { |
@@ -133,6 +138,15 @@ namespace OpenSim.Tests.Common | |||
133 | CreateUserWithInventory(scene, ua, pw); | 138 | CreateUserWithInventory(scene, ua, pw); |
134 | return ua; | 139 | return ua; |
135 | } | 140 | } |
141 | |||
142 | public static UserAccount CreateUserWithInventory( | ||
143 | Scene scene, string firstName, string lastName, int userId, string pw) | ||
144 | { | ||
145 | UserAccount ua | ||
146 | = new UserAccount(TestHelpers.ParseTail(userId)) { FirstName = firstName, LastName = lastName }; | ||
147 | CreateUserWithInventory(scene, ua, pw); | ||
148 | return ua; | ||
149 | } | ||
136 | 150 | ||
137 | public static void CreateUserWithInventory(Scene scene, UserAccount ua, string pw) | 151 | public static void CreateUserWithInventory(Scene scene, UserAccount ua, string pw) |
138 | { | 152 | { |