public void SetUp()
 {
     _view = Substitute.For<ILoginView>();
     _clientMessenger = Substitute.For<IClientMessenger>();
     _uut = new LoginViewController(_view, _clientMessenger);
     _view.Controller = _uut;
 }
Exemple #2
0
		public override void ViewDidAppear (bool animated)
		{
			base.ViewDidAppear (animated);

			// Let the controller know that the view has finished loading.
			Controller = new LoginViewController(this, iOSClientFactory.DefaultClient());
			Controller.ViewDidLoad ();
		}
Exemple #3
0
        public WinLoginView()
        {
            //UI related. Sets placeholdertext
            InitializeComponent();
            ThemeProperties.SetPlaceholderText(EmailTextBox, "E-mail");
            ThemeProperties.SetPlaceholderText(PasswordTextBox, "Password");

            string Ip = System.IO.File.ReadAllText("IpTextFile.txt");
            //Controller
            var clientMessager = new ClientMessenger(new SynchronousSocketClient(Ip));
            Controller = new LoginViewController(this, clientMessager);
            Controller.ViewDidLoad();
        }
Exemple #4
0
 private void InitiateController()
 {
     Controller = new LoginViewController(this, new ClientMessenger(new SynchronousSocketClient("93.166.226.201")));
     Controller.ViewDidLoad();
 }