public void AddPostStateFailTest(EPostResponseStatus state)
        {
            _viewMock.Setup(f => f.ShowErrorAlert(It.IsAny <string>()));
            _viewMock.Setup(f => f.SetInteractionAvailable());
            _interactorMock.Setup(f => f.GetRepository().LangCreatePost.CreatePostBadRequest).Returns(It.IsAny <Func <string, string> >());
            var presenter = new PresenterCreatePost(_viewMock.Object, _interactorMock.Object, _routerMock.Object, _stylesHolderMock.Object, Localization.Lang);

            presenter.AddPostState(state);

            _viewMock.Verify(f => f.ShowErrorAlert(It.IsAny <string>()), Times.Once);
        }
        public void AddPostStateSuccessTest()
        {
            _viewMock.Setup(f => f.AddPostSuccess());
            _viewMock.Setup(f => f.SetInteractionAvailable());
            _routerMock.Setup(f => f.ToPostsFeed());
            var presenter = new PresenterCreatePost(_viewMock.Object, _interactorMock.Object, _routerMock.Object, _stylesHolderMock.Object, Localization.Lang);

            presenter.AddPostState(EPostResponseStatus.Success);

            _viewMock.Verify(f => f.AddPostSuccess(), Times.Once);
        }