aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Tests
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-02-12 17:07:44 +0000
committerJustin Clarke Casey2009-02-12 17:07:44 +0000
commit31ca3a8d4d53fc82a3b4cb62ad4edaebc4111302 (patch)
tree89a086e5dcdc1cb026b9a9fe2d9d914babaa65a0 /OpenSim/Framework/Communications/Tests
parent* Added XEngine tests and gathered other ScriptEngine (diff)
downloadopensim-SC-31ca3a8d4d53fc82a3b4cb62ad4edaebc4111302.zip
opensim-SC-31ca3a8d4d53fc82a3b4cb62ad4edaebc4111302.tar.gz
opensim-SC-31ca3a8d4d53fc82a3b4cb62ad4edaebc4111302.tar.bz2
opensim-SC-31ca3a8d4d53fc82a3b4cb62ad4edaebc4111302.tar.xz
* refactor: Move RequestInventoryForUser() from service to CachedUserInfo
* This simplifies callers in most cases - CachedUserInfo is already handling the rest of the fetch inventory work anyway
Diffstat (limited to 'OpenSim/Framework/Communications/Tests')
-rw-r--r--OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs2
-rw-r--r--OpenSim/Framework/Communications/Tests/Cache/UserProfileTestUtils.cs5
2 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
index cda9d5c..e2576ef 100644
--- a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
+++ b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
@@ -64,7 +64,7 @@ namespace OpenSim.Framework.Communications.Tests
64 /// Test requesting inventory for a user 64 /// Test requesting inventory for a user
65 /// </summary> 65 /// </summary>
66 [Test] 66 [Test]
67 public void TestRequestInventoryForUser() 67 public void TestFetchInventory()
68 { 68 {
69 TestCommunicationsManager commsManager = new TestCommunicationsManager(); 69 TestCommunicationsManager commsManager = new TestCommunicationsManager();
70 CachedUserInfo userInfo = UserProfileTestUtils.CreateUserWithInventory(commsManager); 70 CachedUserInfo userInfo = UserProfileTestUtils.CreateUserWithInventory(commsManager);
diff --git a/OpenSim/Framework/Communications/Tests/Cache/UserProfileTestUtils.cs b/OpenSim/Framework/Communications/Tests/Cache/UserProfileTestUtils.cs
index 85cc940..93ce916 100644
--- a/OpenSim/Framework/Communications/Tests/Cache/UserProfileTestUtils.cs
+++ b/OpenSim/Framework/Communications/Tests/Cache/UserProfileTestUtils.cs
@@ -59,9 +59,10 @@ namespace OpenSim.Framework.Communications.Tests
59 59
60 lus.AddUser("Bill", "Bailey", "troll", "bill@bailey.com", 1000, 1000, userId); 60 lus.AddUser("Bill", "Bailey", "troll", "bill@bailey.com", 1000, 1000, userId);
61 61
62 commsManager.UserProfileCacheService.RequestInventoryForUser(userId); 62 CachedUserInfo userInfo = commsManager.UserProfileCacheService.GetUserDetails(userId);
63 userInfo.FetchInventory();
63 64
64 return commsManager.UserProfileCacheService.GetUserDetails(userId); 65 return userInfo;
65 } 66 }
66 } 67 }
67} 68}