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.cs159
1 files changed, 78 insertions, 81 deletions
diff --git a/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs b/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
index cd61fa6..2b14d97 100644
--- a/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
+++ b/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
@@ -36,85 +36,82 @@ namespace OpenSim.Tests.Common.Setup
36 /// </summary> 36 /// </summary>
37 public static class UserProfileTestUtils 37 public static class UserProfileTestUtils
38 { 38 {
39 // REFACTORING PROBLEM 39// /// <summary>
40 // This needs to be rewritten 40// /// Create a test user with a standard inventory
41 41// /// </summary>
42 ///// <summary> 42// /// <param name="commsManager"></param>
43 ///// Create a test user with a standard inventory 43// /// <param name="callback">
44 ///// </summary> 44// /// Callback to invoke when inventory has been loaded. This is required because
45 ///// <param name="commsManager"></param> 45// /// loading may be asynchronous, even on standalone
46 ///// <param name="callback"> 46// /// </param>
47 ///// Callback to invoke when inventory has been loaded. This is required because 47// /// <returns></returns>
48 ///// loading may be asynchronous, even on standalone 48// public static CachedUserInfo CreateUserWithInventory(
49 ///// </param> 49// CommunicationsManager commsManager, OnInventoryReceivedDelegate callback)
50 ///// <returns></returns> 50// {
51 //public static CachedUserInfo CreateUserWithInventory( 51// UUID userId = UUID.Parse("00000000-0000-0000-0000-000000000099");
52 // CommunicationsManager commsManager, OnInventoryReceivedDelegate callback) 52// return CreateUserWithInventory(commsManager, userId, callback);
53 //{ 53// }
54 // UUID userId = UUID.Parse("00000000-0000-0000-0000-000000000099"); 54//
55 // return CreateUserWithInventory(commsManager, userId, callback); 55// /// <summary>
56 //} 56// /// Create a test user with a standard inventory
57 57// /// </summary>
58 ///// <summary> 58// /// <param name="commsManager"></param>
59 ///// Create a test user with a standard inventory 59// /// <param name="userId">User ID</param>
60 ///// </summary> 60// /// <param name="callback">
61 ///// <param name="commsManager"></param> 61// /// Callback to invoke when inventory has been loaded. This is required because
62 ///// <param name="userId">User ID</param> 62// /// loading may be asynchronous, even on standalone
63 ///// <param name="callback"> 63// /// </param>
64 ///// Callback to invoke when inventory has been loaded. This is required because 64// /// <returns></returns>
65 ///// loading may be asynchronous, even on standalone 65// public static CachedUserInfo CreateUserWithInventory(
66 ///// </param> 66// CommunicationsManager commsManager, UUID userId, OnInventoryReceivedDelegate callback)
67 ///// <returns></returns> 67// {
68 //public static CachedUserInfo CreateUserWithInventory( 68// return CreateUserWithInventory(commsManager, "Bill", "Bailey", userId, callback);
69 // CommunicationsManager commsManager, UUID userId, OnInventoryReceivedDelegate callback) 69// }
70 //{ 70//
71 // return CreateUserWithInventory(commsManager, "Bill", "Bailey", userId, callback); 71// /// <summary>
72 //} 72// /// Create a test user with a standard inventory
73 73// /// </summary>
74 ///// <summary> 74// /// <param name="commsManager"></param>
75 ///// Create a test user with a standard inventory 75// /// <param name="firstName">First name of user</param>
76 ///// </summary> 76// /// <param name="lastName">Last name of user</param>
77 ///// <param name="commsManager"></param> 77// /// <param name="userId">User ID</param>
78 ///// <param name="firstName">First name of user</param> 78// /// <param name="callback">
79 ///// <param name="lastName">Last name of user</param> 79// /// Callback to invoke when inventory has been loaded. This is required because
80 ///// <param name="userId">User ID</param> 80// /// loading may be asynchronous, even on standalone
81 ///// <param name="callback"> 81// /// </param>
82 ///// Callback to invoke when inventory has been loaded. This is required because 82// /// <returns></returns>
83 ///// loading may be asynchronous, even on standalone 83// public static CachedUserInfo CreateUserWithInventory(
84 ///// </param> 84// CommunicationsManager commsManager, string firstName, string lastName,
85 ///// <returns></returns> 85// UUID userId, OnInventoryReceivedDelegate callback)
86 //public static CachedUserInfo CreateUserWithInventory( 86// {
87 // CommunicationsManager commsManager, string firstName, string lastName, 87// return CreateUserWithInventory(commsManager, firstName, lastName, "troll", userId, callback);
88 // UUID userId, OnInventoryReceivedDelegate callback) 88// }
89 //{ 89//
90 // return CreateUserWithInventory(commsManager, firstName, lastName, "troll", userId, callback); 90// /// <summary>
91 //} 91// /// Create a test user with a standard inventory
92 92// /// </summary>
93 ///// <summary> 93// /// <param name="commsManager"></param>
94 ///// Create a test user with a standard inventory 94// /// <param name="firstName">First name of user</param>
95 ///// </summary> 95// /// <param name="lastName">Last name of user</param>
96 ///// <param name="commsManager"></param> 96// /// <param name="password">Password</param>
97 ///// <param name="firstName">First name of user</param> 97// /// <param name="userId">User ID</param>
98 ///// <param name="lastName">Last name of user</param> 98// /// <param name="callback">
99 ///// <param name="password">Password</param> 99// /// Callback to invoke when inventory has been loaded. This is required because
100 ///// <param name="userId">User ID</param> 100// /// loading may be asynchronous, even on standalone
101 ///// <param name="callback"> 101// /// </param>
102 ///// Callback to invoke when inventory has been loaded. This is required because 102// /// <returns></returns>
103 ///// loading may be asynchronous, even on standalone 103// public static CachedUserInfo CreateUserWithInventory(
104 ///// </param> 104// CommunicationsManager commsManager, string firstName, string lastName, string password,
105 ///// <returns></returns> 105// UUID userId, OnInventoryReceivedDelegate callback)
106 //public static CachedUserInfo CreateUserWithInventory( 106// {
107 // CommunicationsManager commsManager, string firstName, string lastName, string password, 107// LocalUserServices lus = (LocalUserServices)commsManager.UserService;
108 // UUID userId, OnInventoryReceivedDelegate callback) 108// lus.AddUser(firstName, lastName, password, "bill@bailey.com", 1000, 1000, userId);
109 //{ 109//
110 // LocalUserServices lus = (LocalUserServices)commsManager.UserService; 110// CachedUserInfo userInfo = commsManager.UserProfileCacheService.GetUserDetails(userId);
111 // lus.AddUser(firstName, lastName, password, "bill@bailey.com", 1000, 1000, userId); 111// userInfo.OnInventoryReceived += callback;
112 112// userInfo.FetchInventory();
113 // CachedUserInfo userInfo = commsManager.UserProfileCacheService.GetUserDetails(userId); 113//
114 // userInfo.OnInventoryReceived += callback; 114// return userInfo;
115 // userInfo.FetchInventory(); 115// }
116
117 // return userInfo;
118 //}
119 } 116 }
120} 117} \ No newline at end of file