3 using System.Collections.Specialized;
4 using System.Configuration.Provider;
5 using System.Web.Security;
7 namespace MonoTests.SystemWeb.Framework
9 public class TestRoleProvider : RoleProvider
11 public override string ApplicationName
17 public override void AddUsersToRoles(string[] usernames, string[] roleNames)
19 throw new Exception ("Not implemented yet.");
22 public override void CreateRole (string roleName)
24 throw new Exception ("Not implemented yet.");
27 public override bool DeleteRole (string roleName, bool throwOnPopulatedRole)
29 throw new Exception ("Not implemented yet.");
32 public override string[] FindUsersInRole (string roleName, string usernameToMatch)
34 throw new Exception ("Not implemented yet.");
37 public override string[] GetAllRoles ()
39 throw new Exception ("Not implemented yet.");
42 public override string[] GetRolesForUser (string username)
44 throw new Exception ("Not implemented yet.");
47 public override string[] GetUsersInRole (string roleName)
49 throw new Exception ("Not implemented yet.");
52 public override bool IsUserInRole (string username, string roleName)
55 throw new ArgumentNullException ("Username cannot be null.");
57 throw new ArgumentNullException ("Role name cannot be null.");
58 if (username == string.Empty)
59 throw new ArgumentException ("Username cannot be empty.");
60 if (roleName == string.Empty)
61 throw new ArgumentException ("Role name cannot be empty.");
62 if (username == "invalid")
63 throw new ProviderException ("User does not exist.");
64 if (roleName == "invalid")
65 throw new ProviderException ("Role does not exist.");
66 if (username == "true")
71 public override void RemoveUsersFromRoles (string[] usernames, string[] roleNames)
73 throw new Exception ("Not implemented yet.");
76 public override bool RoleExists (string roleName)
78 throw new Exception ("Not implemented yet.");