aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-05-28 23:14:24 +0100
committerJustin Clark-Casey (justincc)2010-05-28 23:14:24 +0100
commit191db0e6a4327e8bf84350a541a9edc579ae1c54 (patch)
treee9d0c0354ccfabcb3ded539cb62a43bb2e503d3b /OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
parentrestore InventoryArchiverTests.TestReplicateArchivePathToUserInventory() to w... (diff)
downloadopensim-SC-191db0e6a4327e8bf84350a541a9edc579ae1c54.zip
opensim-SC-191db0e6a4327e8bf84350a541a9edc579ae1c54.tar.gz
opensim-SC-191db0e6a4327e8bf84350a541a9edc579ae1c54.tar.bz2
opensim-SC-191db0e6a4327e8bf84350a541a9edc579ae1c54.tar.xz
get TestSaveIarV0_1() uncommented but not running as a test yet since I didn't get the authentication server to work and my brain is about to fizzle out my ears
Diffstat (limited to 'OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs')
-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