public void SetConfigSetAvatarTest()
        {
            _repositoryUserMock.SetupGet(f => f.AuthData).Returns(new UserAuthData(new DataModelAuth(
                                                                                       "111", "email", "*****@*****.**", "*****@*****.**", null, "2017-11-14T09:30:26.893Z", "https://pbs.twimg.com/profile_images/901947348699545601/hqRMHITj.jpg",
                                                                                       null, "2017-11-17T08:43:17.669Z", "Jon", "Snow", null, "EN", false, 1510651826, 1510908197, 0, null)));

            _presenterMock.Setup(f => f.SetUserAvatar(It.IsAny <string>()));
            _presenterMock.Setup(f => f.SetUserName(It.IsAny <string>()));

            _interactor.SetConfig();

            _presenterMock.Verify(f => f.SetUserAvatar(It.IsAny <string>()), Times.Once);
        }
Exemplo n.º 2
0
        public void SetConfig()
        {
            if (_stylesHolder != null)
            {
                _viewCreatePost.SetDividingLineTheme(_stylesHolder.DividingLineTheme);
                _viewCreatePost.SetNameTheme(_stylesHolder.NameTheme);
                _viewCreatePost.SetTitleTheme(_stylesHolder.TitleTheme);
                _viewCreatePost.SetAvatarTheme(_stylesHolder.AvatarTheme);
                _viewCreatePost.SetBackButtonTheme(_stylesHolder.BackButtonTheme);
                _viewCreatePost.SetAttachImageButtonTheme(_stylesHolder.AttachImageButtonTheme);
                _viewCreatePost.SetPublishTextViewTheme(_stylesHolder.PublishTextViewTheme);
                _viewCreatePost.SetToolsTheme(_stylesHolder.ToolsStateNoneTheme);
                _viewCreatePost.SetPriceTextViewTheme(_stylesHolder.PriceTextViewTheme);
                _viewCreatePost.SetBuySellTheme(_stylesHolder.BuySellStateNoneTheme);
                _viewCreatePost.SetAccessModeTheme(_stylesHolder.AccessModeStateNoneTheme);
                _viewCreatePost.SetForecastTimeTheme(_stylesHolder.ForecastTimeStateNoneTheme);
                _viewCreatePost.SetCommentTheme(_stylesHolder.CommentStateNoneTheme);
                _viewCreatePost.SetToolbarTheme(_stylesHolder.ToolBarViewTheme);
            }

            _interactor.SetConfig();
        }