public void LoadDataTest()
        {
            _repositoryMock.SetupGet(f => f.CreatePostStrings).Returns(It.IsAny <CreatePostStrings>());

            _interactor.LoadData();

            _repositoryMock.VerifyGet(f => f.CreatePostStrings, Times.Once);
        }
Exemple #2
0
        public void LoadData()
        {
            var createPostStrings = _interactor.LoadData();

            if (createPostStrings != null)
            {
                _viewCreatePost.AccessModeText   = createPostStrings.AccessMode;
                _viewCreatePost.BuySellText      = createPostStrings.BuySell;
                _viewCreatePost.ForecastTimeText = createPostStrings.ForecastTime;
                if (!string.IsNullOrWhiteSpace(createPostStrings.Comment))
                {
                    _viewCreatePost.CommentText = createPostStrings.Comment;
                }
            }

            LoadSelectedTool();
        }