Ejemplo n.º 1
0
        public void AuthSuccessTest()
        {
            _interactorMock.Setup(f => f.Authorize("*****@*****.**", "12345"))
            .Returns(Task.FromResult(EAuthResponse.Success));
            _routerMock.Setup(f => f.GoToMainPage());

            _presenter.Authorize("*****@*****.**", "12345");

            _interactorMock.Verify(f => f.Authorize("*****@*****.**", "12345"));
            _routerMock.Verify(f => f.GoToMainPage());
        }
Ejemplo n.º 2
0
 private void btn_Login_Click(object sender, EventArgs e)
 {
     _presenter.Authorize(this.txtBox_Email.Text, this.txtBox_Pass.Text);
 }