Changeset 4024
- Timestamp:
- 07/09/10 17:19:19 (14 years ago)
- Location:
- branches/HeuristicLab.Services.Authentication Prototype
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Services.Authentication Prototype/HeuristicLab.Services.Authentication Prototyp4.vsmdi
r4009 r4024 6 6 <TestList name="membership" id="9537d6e4-abe1-473d-99f2-e92fd73d5d2f" parentListId="8c43106b-9dc1-4907-a29f-aa66a61bf5b6"> 7 7 <TestLinks> 8 <TestLink id="b7f66205-f4ec-95fe-a1c6-8d6c8149d406" name="ChangePasswordTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 9 <TestLink id="189e7772-5c22-4b71-99a0-088a0d58032a" name="LockUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 10 <TestLink id="2db4d6ab-4cd3-a886-2ac5-fe07d2068721" name="PasswordAttemptWindowTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 11 <TestLink id="648cc85e-1d3a-2c11-c6a4-5294b54ce207" name="GetPasswordTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 12 <TestLink id="fe3e4486-b8ea-6337-b8f2-a28969469a9c" name="EnablePasswordRetrievalTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 13 <TestLink id="e74d08fa-1da6-67aa-e264-44883b102ee0" name="DeleteUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 14 <TestLink id="1a94db67-3320-0cec-7fd2-e24b862bc44f" name="ValidateUserTestHashed" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 15 <TestLink id="7a4e1dba-1d39-2948-7d98-a24768e0c9b0" name="CreateUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 16 <TestLink id="f5257092-3544-c359-b761-ec70163dda25" name="GetNumberOfUsersOnlineTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 17 <TestLink id="34b4b356-297a-e42a-ac92-da02d0a2448d" name="RequiresQuestionAndAnswerTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 8 18 <TestLink id="870dcd03-5cb1-7419-38c6-922aadba3d83" name="AddUsersToRolesTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 19 <TestLink id="246f0e92-203a-6927-8ab4-9db7e34680d4" name="GetAllUsersTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 20 <TestLink id="8e1fa22e-f5c4-2a2f-90b3-46292accf35d" name="EnablePasswordResetTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 21 <TestLink id="bd2b2af4-a196-8696-fdfe-6f8c91dee0ed" name="DeleteRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 22 <TestLink id="3d3010a0-a276-ccc1-237e-3b333b8c922e" name="FindUsersInRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 23 <TestLink id="5d0b1e42-2e2d-902a-310a-eaf3e0c7cfed" name="ResetPasswordTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 24 <TestLink id="eecd2021-d6b1-6674-2ae0-91a9d3d810e9" name="GetUsersInRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 25 <TestLink id="4ab8b61c-5e68-9600-3bda-b62c1be6a59b" name="ValidateUserTestEncrypted" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 26 <TestLink id="a4af587f-4c98-aebc-558f-715a35c3cd41" name="IsUserInRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 9 27 <TestLink id="87879d13-77ad-9ad4-016a-e00a2c9ad877" name="ChangePasswordQuestionAndAnswerTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 10 <TestLink id="fe3e4486-b8ea-6337-b8f2-a28969469a9c" name="EnablePasswordRetrievalTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 11 <TestLink id="189e7772-5c22-4b71-99a0-088a0d58032a" name="LockUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 28 <TestLink id="b076f1b4-7085-972e-6b44-f9169d06d257" name="HeuristicLabRoleProviderConstructorTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 29 <TestLink id="ec4d0dbb-e9d0-921a-60b8-4d5c777c22bb" name="FindUsersByNameTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 30 <TestLink id="fa9b10a7-b01f-af0c-9493-103479586615" name="PasswordFormatTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 31 <TestLink id="24471274-db41-b60d-7d2b-8acb20f60d91" name="RequiresUniqueEmailTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 32 <TestLink id="60c35d4e-9d54-9209-b000-7c6659d31139" name="PasswordStrengthRegularExpressionTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 33 <TestLink id="379524a8-162e-5351-9f98-90379ad7555c" name="GetUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 34 <TestLink id="3463a5ed-c3f1-6729-be85-dc5e0d4df6bd" name="CreateRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 35 <TestLink id="25b44c72-1906-6aa0-5bc3-79c2c429d15d" name="TestCreateRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 36 <TestLink id="f2bc074f-6cf0-8bb3-8fdb-2bb731b072df" name="FindUsersByEmailTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 37 <TestLink id="6af0f397-4c32-7395-eef2-8ad544b236ba" name="GetAllRolesTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 38 <TestLink id="8da47073-95eb-4ffc-5a69-67901dba3a5a" name="ValidateUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 12 39 <TestLink id="ff6c5d3e-5e1e-1081-124b-2fcac551aca7" name="ApplicationNameTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 13 <TestLink id="24471274-db41-b60d-7d2b-8acb20f60d91" name="RequiresUniqueEmailTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 14 <TestLink id="ac003d48-3914-cbfc-71f8-06b626d85e48" name="RemoveUsersFromRolesTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 40 <TestLink id="803d2869-a377-25bf-a71b-c84dc77d1def" name="GetUserNameByEmailTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 15 41 <TestLink id="988929ee-6387-989d-0f13-4e62dd431895" name="ApplicationNameTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 16 42 <TestLink id="9d907fe3-9c12-249c-3602-aec229273f9f" name="MaxInvalidPasswordAttemptsTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 17 <TestLink id="803d2869-a377-25bf-a71b-c84dc77d1def" name="GetUserNameByEmailTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 18 <TestLink id="5d0b1e42-2e2d-902a-310a-eaf3e0c7cfed" name="ResetPasswordTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 19 <TestLink id="f5257092-3544-c359-b761-ec70163dda25" name="GetNumberOfUsersOnlineTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 20 <TestLink id="0bede7a2-34a9-e4a1-876d-340d270063a8" name="GetRolesForUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 21 <TestLink id="eecd2021-d6b1-6674-2ae0-91a9d3d810e9" name="GetUsersInRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 22 <TestLink id="b076f1b4-7085-972e-6b44-f9169d06d257" name="HeuristicLabRoleProviderConstructorTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 23 <TestLink id="4ab8b61c-5e68-9600-3bda-b62c1be6a59b" name="ValidateUserTestEncrypted" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 24 <TestLink id="a4af587f-4c98-aebc-558f-715a35c3cd41" name="IsUserInRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 25 <TestLink id="e74d08fa-1da6-67aa-e264-44883b102ee0" name="DeleteUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 26 <TestLink id="fa9b10a7-b01f-af0c-9493-103479586615" name="PasswordFormatTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 27 <TestLink id="bd2b2af4-a196-8696-fdfe-6f8c91dee0ed" name="DeleteRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 28 <TestLink id="2db4d6ab-4cd3-a886-2ac5-fe07d2068721" name="PasswordAttemptWindowTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 43 <TestLink id="9c0dd09c-2020-7eaa-5fa5-6a929596dff0" name="UpdateUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 29 44 <TestLink id="903719dc-469b-6714-449e-0d776b005bcf" name="RoleExistsTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 30 45 <TestLink id="196bf27d-a22d-5b93-03da-a009cdce162d" name="NoDuplicateUserNameTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 31 <TestLink id="1a94db67-3320-0cec-7fd2-e24b862bc44f" name="ValidateUserTestHashed" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />32 <TestLink id="379524a8-162e-5351-9f98-90379ad7555c" name="GetUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />33 <TestLink id="34b4b356-297a-e42a-ac92-da02d0a2448d" name="RequiresQuestionAndAnswerTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />34 <TestLink id="f2bc074f-6cf0-8bb3-8fdb-2bb731b072df" name="FindUsersByEmailTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />35 <TestLink id="ec4d0dbb-e9d0-921a-60b8-4d5c777c22bb" name="FindUsersByNameTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />36 <TestLink id="60c35d4e-9d54-9209-b000-7c6659d31139" name="PasswordStrengthRegularExpressionTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />37 <TestLink id="6af0f397-4c32-7395-eef2-8ad544b236ba" name="GetAllRolesTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />38 <TestLink id="3463a5ed-c3f1-6729-be85-dc5e0d4df6bd" name="CreateRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />39 46 <TestLink id="3adf5992-1e01-e5fc-4289-d84b0c245a46" name="MinRequiredPasswordLengthTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 40 <TestLink id=" 648cc85e-1d3a-2c11-c6a4-5294b54ce207" name="GetPasswordTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />41 <TestLink id=" 3d3010a0-a276-ccc1-237e-3b333b8c922e" name="FindUsersInRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />42 <TestLink id=" 246f0e92-203a-6927-8ab4-9db7e34680d4" name="GetAllUsersTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />43 <TestLink id=" b7f66205-f4ec-95fe-a1c6-8d6c8149d406" name="ChangePasswordTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />44 <TestLink id=" 9c0dd09c-2020-7eaa-5fa5-6a929596dff0" name="UpdateUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />47 <TestLink id="0bede7a2-34a9-e4a1-876d-340d270063a8" name="GetRolesForUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 48 <TestLink id="507879f3-78ea-dbf3-86f4-ab641c928ba6" name="NoDuplicateRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 49 <TestLink id="84e79879-c282-5988-28ff-3c4f0a02776f" name="AddChildRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 50 <TestLink id="ac003d48-3914-cbfc-71f8-06b626d85e48" name="RemoveUsersFromRolesTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 51 <TestLink id="52486394-92df-3a60-6fc5-02aa93a756ce" name="MinRequiredNonAlphanumericCharactersTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 45 52 <TestLink id="ebbb8f42-7ada-7770-1d53-90ecaf969f8c" name="NoDuplicateEmailTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" /> 46 <TestLink id="8e1fa22e-f5c4-2a2f-90b3-46292accf35d" name="EnablePasswordResetTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />47 <TestLink id="7a4e1dba-1d39-2948-7d98-a24768e0c9b0" name="CreateUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />48 <TestLink id="8da47073-95eb-4ffc-5a69-67901dba3a5a" name="ValidateUserTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />49 <TestLink id="52486394-92df-3a60-6fc5-02aa93a756ce" name="MinRequiredNonAlphanumericCharactersTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />50 <TestLink id="507879f3-78ea-dbf3-86f4-ab641c928ba6" name="NoDuplicateRoleTest" storage="unittests\bin\debug\unittests.dll" type="Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestElement, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, PublicKeyToken=b03f5f7f11d50a3a" />51 53 </TestLinks> 52 54 </TestList> -
branches/HeuristicLab.Services.Authentication Prototype/Service/Provider/HeuristicLabMembershipProvider.cs
r4019 r4024 153 153 using (DataClassesDataContext db = DatabaseUtil.createDataClassesDataContext()) { 154 154 // check database connection 155 if (db == null) { 156 return false; 157 } 158 155 159 156 if (newPassword.Length < MinRequiredPasswordLength) { 160 157 return false; 161 158 } 162 163 try { 164 // try to get user 159 if (db.HeuristicLabUsers.Count(x => x.UserName == username) > 0) { 165 160 HeuristicLabUser u = db.HeuristicLabUsers.Single(x => x.UserName == username); 166 161 … … 171 166 } 172 167 return false; 173 174 175 } 176 catch (Exception) { 177 return false; 178 } 168 } else { 169 return false; 170 } 171 172 179 173 } 180 174 } -
branches/HeuristicLab.Services.Authentication Prototype/Service/Provider/HeuristicLabRoleProvider.cs
r4000 r4024 9 9 class HeuristicLabRoleProvider : RoleProvider { 10 10 protected string applicationName; 11 12 13 11 14 12 15 public override void AddUsersToRoles(string[] usernames, string[] roleNames) { … … 85 88 Persistence.DataClassesDataContext db = DatabaseUtil.createDataClassesDataContext(); 86 89 if (roleName != null && db.HeuristicLabRole.Count(r => r.RoleName == roleName) == 1) { 90 87 91 HeuristicLabRole role = db.HeuristicLabRole.Single(r => r.RoleName == roleName); 92 88 93 foreach (HeuristicLabUserRole userRole in role.HeuristicLabUserRoles) { 89 94 if (userRole.HeuristicLabUser.UserName.Contains(usernameToMatch)) { … … 121 126 context.Dispose(); 122 127 return roleList.ToArray(); 128 } 129 130 public virtual void AddChildRole(string parentRoleName, string childRoleName) { 131 using (DataClassesDataContext db = DatabaseUtil.createDataClassesDataContext()) { 132 133 if (db.HeuristicLabRole.Count(x => x.RoleName == parentRoleName) > 0 && db.HeuristicLabRole.Count(x => x.RoleName == childRoleName) > 0) { 134 135 HeuristicLabRole parentRole = db.HeuristicLabRole.Single(x => x.RoleName == parentRoleName); 136 HeuristicLabRole childRole = db.HeuristicLabRole.Single(x => x.RoleName == childRoleName); 137 childRole.ParentRoleID = parentRole.ID; 138 parentRole.HeuristicLabRoleChilds.Add(childRole); 139 db.SubmitChanges(); 140 } 141 } 142 123 143 } 124 144 … … 142 162 DataClassesDataContext context = DatabaseUtil.createDataClassesDataContext(); 143 163 if (username != null && roleName != null) { 144 returnValue = (context.HeuristicLabUserRole.Count(ur => ur.HeuristicLabRole.RoleName == roleName && ur.HeuristicLabUser.UserName == username) > 0); 164 165 Persistence.HeuristicLabUser user = context.HeuristicLabUsers.Single(x => x.UserName == username); 166 foreach (Persistence.HeuristicLabUserRole ur in user.HeuristicLabUserRoles) { 167 if (ur.HeuristicLabRole.RoleName.Equals(roleName)) { 168 return true; 169 } else { 170 List<HeuristicLabRole> tmpList = ur.HeuristicLabRole.HeuristicLabRoleChilds.ToList<HeuristicLabRole>(); 171 if (ResolveChildRoles(tmpList, roleName)) { 172 return true; 173 } 174 } 175 } 176 177 178 145 179 } 146 180 context.Dispose(); 147 181 return returnValue; 148 182 } 149 183 protected bool ResolveChildRoles(List<HeuristicLabRole> roles, string roleName) 184 { 185 bool returnValue = false; 186 foreach (HeuristicLabRole r in roles) { 187 if (r.RoleName.Equals(roleName)) { 188 return true; 189 } else { 190 if (ResolveChildRoles(r.HeuristicLabRoleChilds.ToList<HeuristicLabRole>(), roleName)) { 191 return true; 192 } 193 } 194 } 195 return returnValue; 196 } 150 197 public override void RemoveUsersFromRoles(string[] usernames, string[] roleNames) { 151 198 -
branches/HeuristicLab.Services.Authentication Prototype/UnitTests/HeuristicLabRoleProviderTest.cs
r4002 r4024 142 142 Assert.IsTrue(target.IsUserInRole("mholper", "admin")); 143 143 Assert.IsFalse(target.IsUserInRole("mholper", "user")); 144 145 target.AddChildRole("admin", "users"); 146 Assert.IsTrue(target.IsUserInRole("mholper", "users")); 144 147 } 145 148 … … 382 385 } 383 386 } 387 388 [TestMethod()] 389 public void AddChildRoleTest() { 390 HeuristicLabRoleProvider roleProvider = new HeuristicLabRoleProvider(); 391 roleProvider.CreateRole("parent"); 392 roleProvider.CreateRole("child"); 393 roleProvider.AddChildRole("parent", "child"); 394 Persistence.HeuristicLabRole parent = db.HeuristicLabRole.Single(x => x.RoleName == "parent"); 395 Persistence.HeuristicLabRole child = parent.HeuristicLabRoleChilds.ToList().ElementAt(0); 396 Assert.AreEqual(child.RoleName, "child"); 397 398 } 399 384 400 } 385 401 }
Note: See TracChangeset
for help on using the changeset viewer.