public void Initilaze() { _twitterService = new Mock <ITwitterService>(); _repository = new PostTwitterRepository(_twitterService.Object); _tweet = new Mock <ITweet>(); _tweets = new Mock <List <ITweet> >(); }
public void SetUp() { _serviceTwitter = new TwitterService(); _repository = new PostTwitterRepository(_serviceTwitter); _service = new PostService(_repository); _post = ObjectMother.GetPost(); }