Free cookie consent management tool by TermsFeed Policy Generator

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

#1196

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.