示例#1
0
 public void RetrieveUsers()
 {
     TestUsersListView usersListView = new TestUsersListView();
     UsersListController controller = new UsersListController(
         new ConsoleResponsiveHelper(ConcurrencyMode.Modal), usersListView);
     controller.RetrieveGroups();
     Assert.IsTrue(true, "No Exceptions");
 }
示例#2
0
 public static void Start()
 {
     Form1 usersListView = new Form1();
     UsersListController controller = new UsersListController(
         new WinFormsResponsiveHelper(ConcurrencyMode.Modal), usersListView);
     controller.RetrieveGroups();
     Application.Run(usersListView);
 }
示例#3
0
 public void SelectGroup()
 {
     TestUsersListView usersListView = new TestUsersListView();
     UsersListController controller = new UsersListController(
         new ConsoleResponsiveHelper(ConcurrencyMode.Modal), usersListView);
     controller.RetrieveGroups();
     usersListView.SelectedGroup = usersListView.SharedData.Groups[1];
     controller.OnGroupSelectionChanged(usersListView.SelectedGroup);
     Assert.IsTrue(true, "No Exceptions");
 }
示例#4
0
 public static void startFirstController()
 {
     // Gtk version:
     UsersListView view = new UsersListView();
     UsersListController controller =
         new UsersListController(new GtkResponsiveHelper(ConcurrencyMode.Modal), view);
     controller.RetrieveGroups();
     MainWindow win = new MainWindow ();
     win.Add((Gtk.Widget)view);
     win.Show ();
     win.ReshowWithInitialSize();
     win.Child.ShowAll();
 }