Exemplo n.º 1
0
		public void LoginValidAuthenticationTest ( ) {
			//Arrange
			loginViewModel = new LoginViewModel (mockStaffMemberDataRepository.Object, mockWebService.Object, mockErrorLog.Object);
			mockStaffMemberDataRepository.Setup (m => m.StaffLogin (username, password, mockWebService.Object, mockErrorLog.Object)).ReturnsAsync("");

			//Act
			Task<String> result = loginViewModel.Login (username, password);

			//Assert
			Assert.AreEqual ("", result.Result);
		}
Exemplo n.º 2
0
		public LoginPage ()
		{
			InitializeComponent ();
			_viewModel = new LoginViewModel ();
			BindingContext = _viewModel;
		}