diff options
author | Justin Clark-Casey (justincc) | 2010-05-28 21:37:48 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-05-28 21:37:48 +0100 |
commit | a60ca5236c247b88909a3c0462675627575b334c (patch) | |
tree | 1de95f0347da5e5566305561f30bbc601e7c0496 /OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs | |
parent | minor: move a method so that the #regions make more sense (diff) | |
download | opensim-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.cs | 13 |
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 | ||
28 | using OpenMetaverse; | 28 | using OpenMetaverse; |
29 | using OpenSim.Framework.Communications; | 29 | using OpenSim.Framework.Communications; |
30 | 30 | using OpenSim.Region.Framework.Scenes; | |
31 | using OpenSim.Services.Interfaces; | ||
31 | 32 | ||
32 | namespace OpenSim.Tests.Common.Setup | 33 | namespace 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 |