4 using System.Collections.Specialized;
5 using System.Configuration.Provider;
6 using System.Web.Security;
8 namespace MonoTests.SystemWeb.Framework
10 public class TestRoleProvider : RoleProvider
12 public override string ApplicationName
18 public override void AddUsersToRoles(string[] usernames, string[] roleNames)
20 throw new Exception ("Not implemented yet.");
23 public override void CreateRole (string roleName)
25 throw new Exception ("Not implemented yet.");
28 public override bool DeleteRole (string roleName, bool throwOnPopulatedRole)
30 throw new Exception ("Not implemented yet.");
33 public override string[] FindUsersInRole (string roleName, string usernameToMatch)
35 throw new Exception ("Not implemented yet.");
38 public override string[] GetAllRoles ()
40 throw new Exception ("Not implemented yet.");
43 public override string[] GetRolesForUser (string username)
45 throw new Exception ("Not implemented yet.");
48 public override string[] GetUsersInRole (string roleName)
50 throw new Exception ("Not implemented yet.");
53 public override bool IsUserInRole (string username, string roleName)
56 throw new ArgumentNullException ("Username cannot be null.");
58 throw new ArgumentNullException ("Role name cannot be null.");
59 if (username == string.Empty)
60 throw new ArgumentException ("Username cannot be empty.");
61 if (roleName == string.Empty)
62 throw new ArgumentException ("Role name cannot be empty.");
63 if (username == "invalid")
64 throw new ProviderException ("User does not exist.");
65 if (roleName == "invalid")
66 throw new ProviderException ("Role does not exist.");
67 if (username == "true")
72 public override void RemoveUsersFromRoles (string[] usernames, string[] roleNames)
74 throw new Exception ("Not implemented yet.");
77 public override bool RoleExists (string roleName)
79 throw new Exception ("Not implemented yet.");