public void SetData(EItemsOptions data) { _interactor = new InteractorProfileCell(DataService.RepositoryController.RepositoryUser.UserId, new OptionsProfileController(DataService.RepositoryController.RepositoryUserAuth)); _presenter = new PresenterProfileCell(_profileCellView, _interactor, new ProfileCellStylesHolderDroid <GlobalControlsTheme>(DroidDAL.ThemeParser), DataService.RepositoryController.RepositoryMoreOptions.LangMoreOptions); _interactor.Presenter = _presenter; _presenter.SetConfig(); _interactor.SendRequestForUserData(); }
public void FillUserDataTest() { _presenterMock.Setup(f => f.SetAvatar(It.IsAny <string>())); _presenterMock.Setup(f => f.SetName(It.IsAny <string>())); _interactor = new InteractorProfileCell("id", new OptionsProfileController(_repo)) { Presenter = _presenterMock.Object }; _interactor.SendRequestForUserData(); _presenterMock.Verify(f => f.SetAvatar(It.IsAny <string>()), Times.Once); _presenterMock.Verify(f => f.SetName(It.IsAny <string>()), Times.Once); }