Example #1
0
        public void SetPasswordStateFailTest()
        {
            _viewMock.Setup(f => f.SetPasswordEditTextTheme(It.IsAny <IEditTextTheme>()));
            _styleHolderMock.SetupGet(f => f.PasswordStateFail).Returns(It.IsAny <IEditTextTheme>());
            var presenter = new PresenterAuth(_viewMock.Object, _interactorMock.Object, _routerMock.Object, null, null, null, null, _styleHolderMock.Object, _authLocaleStrings.Object);

            presenter.SetPasswordState(EState.Fail);

            _viewMock.Verify(f => f.SetPasswordEditTextTheme(It.IsAny <IEditTextTheme>()), Times.Once);
        }
Example #2
0
        public void SetPasswordStateAnotherTest(EState state)
        {
            var presenter = new PresenterAuth(_viewMock.Object, _interactorMock.Object, _routerMock.Object, null, null, null, null, _styleHolderMock.Object, _authLocaleStrings.Object);

            presenter.SetPasswordState(state);
        }