- Timestamp:
- 07/08/10 21:48:27 (14 years ago)
- Location:
- branches/HeuristicLab.Services.Authentication Prototype/UnitTests/service
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Services.Authentication Prototype/UnitTests/service/HeuristicLabManagementServiceTest.cs
r4002 r4020 4 4 using System.Linq; 5 5 using Microsoft.VisualStudio.TestTools.UnitTesting; 6 using System.Web.Security; 6 7 7 8 namespace UnitTests.service { … … 27 28 } 28 29 } 30 [TestMethod()] 29 31 public void TestCreateRoleTest() { 30 new ServiceManagementRemote.AuthorizationManagementServiceClient().CreateRole("myRole", true); 32 MembershipProvider provider = Membership.Provider; 33 MembershipCreateStatus status; 34 provider.CreateUser("testUser", "mypassword", "myMail", "question", "answer", true, null,out status); 35 Assert.AreEqual(MembershipCreateStatus.Success, status); 36 37 AuthorizationManagementServiceRemote.AuthorizationManagementServiceClient client = new AuthorizationManagementServiceRemote.AuthorizationManagementServiceClient(); 38 client.ClientCredentials.UserName.UserName = "testUser"; 39 client.ClientCredentials.UserName.Password = "mypassword"; 40 client.CreateRole("roleName", true); 31 41 } 32 42
Note: See TracChangeset
for help on using the changeset viewer.