Exemplo n.º 1
0
 public void SetUp()
 {
     _view = Substitute.For<IEditUserView>();
     _clientMessenger = Substitute.For<IClientMessenger>();
     _uut = new EditUserViewController(_view, _clientMessenger);
     _view.Controller = _uut;
 }
Exemplo n.º 2
0
        public WinEditUserView()
        {
            InitializeComponent();
            //UI related. Sets placeholder text
            ThemeProperties.SetPlaceholderText(CurrentPasswordTextBox, "Current password");
            ThemeProperties.SetPlaceholderText(PasswordTextBox, "New password");
            ThemeProperties.SetPlaceholderText(RepeatPasswordTextBox, "Repeat new password");

            //Sets up the tabBars event handlers
            SpTabControl1.OnShowStatButtonClicked += TabBarController.ShowStatButtonPressed;
            SpTabControl1.OnShowHistoryButtonClicked += TabBarController.ShowHistoryButtonPressed;
            SpTabControl1.OnShowAddPoolButtonClicked += TabBarController.ShowAddPoolButtonPressed;
            SpTabControl1.OnShowEditPoolButtonClicked += TabBarController.ShowEditPoolButtonPressed;
            //SpTabControl1.OnShowEditUserButtonClicked += TabBarController.ShowEditUserButtonPressed;

            string Ip = System.IO.File.ReadAllText("IpTextFile.txt");
            var clientMessager = new ClientMessenger(new SynchronousSocketClient(Ip));
            Controller = new EditUserViewController(this, clientMessager);
            Controller.ViewDidLoad();
        }
Exemplo n.º 3
0
		public EditUserViewBridge (IntPtr handle) : base (handle)
		{
			Controller = new EditUserViewController(this, iOSClientFactory.DefaultClient());
		}