public PostsViewModel(IGetPostsCommand getPostsCommand, IOpenLinkCommand openLinkCommand, IPostViewModelMapper postMapper) { _getPostsCommand = getPostsCommand; _openLinkCommand = openLinkCommand; _postMapper = postMapper; ShowPostCommand = new MvxCommand <PostViewModel> (ExecuteShowPostCommand); }
public PostsViewModel(IGetPostsCommand getPostsCommand, IOpenLinkCommand openLinkCommand, IPostViewModelMapper postMapper) { _getPostsCommand = getPostsCommand; _openLinkCommand = openLinkCommand; _postMapper = postMapper; ShowPostCommand = new MvxCommand<PostViewModel> (ExecuteShowPostCommand); }
public void TestSetup() { Setup(); _getPostsCommand = Substitute.For <IGetPostsCommand> (); _openLinkCommand = Substitute.For <IOpenLinkCommand> (); _postViewModelMapper = Substitute.For <IPostViewModelMapper> (); _model = new PostsViewModel(_getPostsCommand, _openLinkCommand, _postViewModelMapper); }
public void TestSetup() { Setup (); _getPostsCommand = Substitute.For<IGetPostsCommand> (); _openLinkCommand = Substitute.For<IOpenLinkCommand> (); _postViewModelMapper = Substitute.For<IPostViewModelMapper> (); _model = new PostsViewModel (_getPostsCommand, _openLinkCommand, _postViewModelMapper); }