aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Mock
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Tests/Common/Mock/MockUserService.cs123
1 files changed, 123 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/Mock/MockUserService.cs b/OpenSim/Tests/Common/Mock/MockUserService.cs
new file mode 100644
index 0000000..1e27fb7
--- /dev/null
+++ b/OpenSim/Tests/Common/Mock/MockUserService.cs
@@ -0,0 +1,123 @@
1
2using System;
3using System.Collections.Generic;
4using OpenMetaverse;
5using OpenSim.Framework;
6using OpenSim.Framework.Communications;
7using OpenSim.Framework.Communications.Cache;
8using OpenSim.Services.Interfaces;
9
10namespace OpenSim.Tests.Common
11{
12 public class MockUserService : IUserService
13 {
14 public void AddTemporaryUserProfile(UserProfileData userProfile)
15 {
16 throw new NotImplementedException();
17 }
18
19 public UserProfileData GetUserProfile(string firstName, string lastName)
20 {
21 throw new NotImplementedException();
22 }
23
24 public UserProfileData GetUserProfile(UUID userId)
25 {
26 throw new NotImplementedException();
27 }
28
29 public UserProfileData GetUserProfile(Uri uri)
30 {
31 UserProfileData userProfile = new UserProfileData();
32
33// userProfile.ID = new UUID(Util.GetHashGuid(uri.ToString(), AssetCache.AssetInfo.Secret));
34
35 return userProfile;
36 }
37
38 public Uri GetUserUri(UserProfileData userProfile)
39 {
40 throw new NotImplementedException();
41 }
42
43 public UserAgentData GetAgentByUUID(UUID userId)
44 {
45 throw new NotImplementedException();
46 }
47
48 public void ClearUserAgent(UUID avatarID)
49 {
50 throw new NotImplementedException();
51 }
52
53 public List<AvatarPickerAvatar> GenerateAgentPickerRequestResponse(UUID QueryID, string Query)
54 {
55 throw new NotImplementedException();
56 }
57
58 public UserProfileData SetupMasterUser(string firstName, string lastName)
59 {
60 throw new NotImplementedException();
61 }
62
63 public UserProfileData SetupMasterUser(string firstName, string lastName, string password)
64 {
65 throw new NotImplementedException();
66 }
67
68 public UserProfileData SetupMasterUser(UUID userId)
69 {
70 throw new NotImplementedException();
71 }
72
73 public bool UpdateUserProfile(UserProfileData data)
74 {
75 throw new NotImplementedException();
76 }
77
78 public void AddNewUserFriend(UUID friendlistowner, UUID friend, uint perms)
79 {
80 throw new NotImplementedException();
81 }
82
83 public void RemoveUserFriend(UUID friendlistowner, UUID friend)
84 {
85 throw new NotImplementedException();
86 }
87
88 public void UpdateUserFriendPerms(UUID friendlistowner, UUID friend, uint perms)
89 {
90 throw new NotImplementedException();
91 }
92
93 public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, Vector3 position, Vector3 lookat)
94 {
95 throw new NotImplementedException();
96 }
97
98 public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, float posx, float posy, float posz)
99 {
100 throw new NotImplementedException();
101 }
102
103 public List<FriendListItem> GetUserFriendList(UUID friendlistowner)
104 {
105 throw new NotImplementedException();
106 }
107
108 public bool VerifySession(UUID userID, UUID sessionID)
109 {
110 return true;
111 }
112
113 public void SetInventoryService(IInventoryService inv)
114 {
115 throw new NotImplementedException();
116 }
117
118 public virtual bool AuthenticateUserByPassword(UUID userID, string password)
119 {
120 throw new NotImplementedException();
121 }
122 }
123}