Changeset 4590 for branches/UserManagement/HeuristicLab.Services.Authentication.TestClient/TestClient.cs
- Timestamp:
- 10/10/10 13:20:18 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.