public void CreateRoleTest()
		{
			var provider = this.GetRoleProvider();

			var role = new Role()
			{
				Namespace = "Flagwind.CRM",
				Name = "SA",
				CreatedTime = DateTime.Now
			};

			var result = provider.CreateRoles(role);
		}
		public void UpdateRoleTest()
		{
			var provider = this.GetRoleProvider();

			var role = new Role()
			{
				RoleId = 1,
				Namespace = "Flagwind.CRM",
				Name = "Administrator",
				Description = "Super Manager."
			};

			var result = provider.UpdateRoles(role);

			Assert.AreEqual(result, 1);
		}
		public static bool IsBuiltin(Role role)
		{
			if(role == null)
				return false;

			return IsBuiltin(role.Name);
		}