public void GetRepositoryTest() { _interactorMock.Setup(f => f.GetRepository()).Returns(It.IsAny <IRepositoryCreatePost>()); var presenter = new PresenterCreatePost(_viewMock.Object, _interactorMock.Object, _routerMock.Object, _stylesHolderMock.Object, Localization.Lang); presenter.GetRepository(); _interactorMock.Verify(f => f.GetRepository(), Times.Once); }