Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/10/10 13:20:18 (14 years ago)
Author:
mjesner
Message:

#1196

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  
    3838    <Reference Include="System.Core" />
    3939    <Reference Include="System.Data.Services.Client" />
     40    <Reference Include="System.Drawing" />
    4041    <Reference Include="System.ServiceModel" />
     42    <Reference Include="System.Windows.Forms" />
    4143    <Reference Include="System.Xml.Linq" />
    4244    <Reference Include="System.Data.DataSetExtensions" />
     
    4648  </ItemGroup>
    4749  <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>
    4856    <Compile Include="TestClient.cs" />
    4957    <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>
    5070  </ItemGroup>
    5171  <ItemGroup>
     
    5979    </ProjectReference>
    6080  </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>
    6196  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    6297  <!-- 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  
    11using System;
     2
    23using System.Collections.Generic;
    3 using System.Linq;
    4 using System.Text;
    5 using HeuristicLab.Services.Authentication;
    6 using HeuristicLab.Services.Authentication.DataTransfer;
     4using System.Windows.Forms;
     5
    76
    87namespace HeuristicLab.Services.Authentication.TestClient
     
    1211        static void Main(string[] args)
    1312        {
     13           
     14            Application.Run(new UserManagement());
    1415
    15             AuthenticationService auth = new AuthenticationService();
     16            //AuthenticationService auth = new AuthenticationService();
    1617
    17             try
    18             {
    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            //    }
    2526
    26                 Console.WriteLine("Try to delete user...");
     27            //    Console.WriteLine("Try to delete user...");
    2728
    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"));
    3031
    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();
    3738            //ServiceClient client = new ServiceClient();
    3839            //client.ClientCredentials.UserName.UserName = "Alice";
Note: See TracChangeset for help on using the changeset viewer.