- Timestamp:
- 10/10/10 13:20:18 (14 years ago)
- Location:
- branches/UserManagement/HeuristicLab.Services.Authentication.TestClient
- Files:
-
- 12 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UserManagement/HeuristicLab.Services.Authentication.TestClient/HeuristicLab.Services.Authentication.TestClient.csproj
r4584 r4590 38 38 <Reference Include="System.Core" /> 39 39 <Reference Include="System.Data.Services.Client" /> 40 <Reference Include="System.Drawing" /> 40 41 <Reference Include="System.ServiceModel" /> 42 <Reference Include="System.Windows.Forms" /> 41 43 <Reference Include="System.Xml.Linq" /> 42 44 <Reference Include="System.Data.DataSetExtensions" /> … … 46 48 </ItemGroup> 47 49 <ItemGroup> 50 <Compile Include="RoleDetail.cs"> 51 <SubType>Form</SubType> 52 </Compile> 53 <Compile Include="RoleDetail.Designer.cs"> 54 <DependentUpon>RoleDetail.cs</DependentUpon> 55 </Compile> 48 56 <Compile Include="TestClient.cs" /> 49 57 <Compile Include="Properties\AssemblyInfo.cs" /> 58 <Compile Include="UserDetail.cs"> 59 <SubType>Form</SubType> 60 </Compile> 61 <Compile Include="UserDetail.Designer.cs"> 62 <DependentUpon>UserDetail.cs</DependentUpon> 63 </Compile> 64 <Compile Include="UserManagement.cs"> 65 <SubType>Form</SubType> 66 </Compile> 67 <Compile Include="UserManagement.Designer.cs"> 68 <DependentUpon>UserManagement.cs</DependentUpon> 69 </Compile> 50 70 </ItemGroup> 51 71 <ItemGroup> … … 59 79 </ProjectReference> 60 80 </ItemGroup> 81 <ItemGroup> 82 <EmbeddedResource Include="RoleDetail.resx"> 83 <DependentUpon>RoleDetail.cs</DependentUpon> 84 </EmbeddedResource> 85 <EmbeddedResource Include="UserDetail.resx"> 86 <DependentUpon>UserDetail.cs</DependentUpon> 87 </EmbeddedResource> 88 <EmbeddedResource Include="UserManagement.resx"> 89 <DependentUpon>UserManagement.cs</DependentUpon> 90 </EmbeddedResource> 91 </ItemGroup> 92 <ItemGroup> 93 <None Include="Properties\DataSources\HeuristicLab.Services.Authentication.DataTransfer.Role.datasource" /> 94 <None Include="Properties\DataSources\HeuristicLab.Services.Authentication.DataTransfer.User.datasource" /> 95 </ItemGroup> 61 96 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 62 97 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
branches/UserManagement/HeuristicLab.Services.Authentication.TestClient/TestClient.cs
r4588 r4590 1 1 using System; 2 2 3 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using HeuristicLab.Services.Authentication; 6 using HeuristicLab.Services.Authentication.DataTransfer; 4 using System.Windows.Forms; 5 7 6 8 7 namespace HeuristicLab.Services.Authentication.TestClient … … 12 11 static void Main(string[] args) 13 12 { 13 14 Application.Run(new UserManagement()); 14 15 15 AuthenticationService auth = new AuthenticationService();16 //AuthenticationService auth = new AuthenticationService(); 16 17 17 try18 {19 IEnumerable<User> list = new List<User>();20 list = auth.GetUsers();21 foreach (var item in list)22 {23 Console.WriteLine("Item=" + item.UserName);24 }18 //try 19 //{ 20 // IEnumerable<User> list = new List<User>(); 21 // list = auth.GetUsers(); 22 // foreach (var item in list) 23 // { 24 // Console.WriteLine("Item=" + item.UserName); 25 // } 25 26 26 Console.WriteLine("Try to delete user...");27 // Console.WriteLine("Try to delete user..."); 27 28 28 User u = new User() { UserId = new Guid("e4abc6ae-c954-4efd-8108-e536226fd9c7")};29 auth.DeleteUser(u);29 // // User u = new User() { UserId = }; 30 // auth.DeleteUser(new Guid("e4abc6ae-c954-4efd-8108-e536226fd9c7")); 30 31 31 }32 catch (Exception e)33 {34 Console.WriteLine(e.Message);35 }36 Console.ReadLine();32 //} 33 //catch (Exception e) 34 //{ 35 // Console.WriteLine(e.Message); 36 //} 37 //Console.ReadLine(); 37 38 //ServiceClient client = new ServiceClient(); 38 39 //client.ClientCredentials.UserName.UserName = "Alice";
Note: See TracChangeset
for help on using the changeset viewer.