Exemplo n.º 1
0
 public void SetUp()
 {
     _view = Substitute.For<ISignUpView>();
     _clientMessenger = Substitute.For<IClientMessenger>();
     _uut = new SignUpViewController(_view, _clientMessenger);
     _view.Controller = _uut;
 }
Exemplo n.º 2
0
        public WinCreateUserView()
        {
            InitializeComponent();
            ThemeProperties.SetPlaceholderText(NameTextBox, "Name");
            ThemeProperties.SetPlaceholderText(EmailTextBox, "E-mail");
            ThemeProperties.SetPlaceholderText(PasswordTextBox, "Password");
            ThemeProperties.SetPlaceholderText(RepeatPasswordTextBox, "Repeat password");

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