public FeedActionControllerFactory(IUserRepository repository)
 {
     _postActionController = new PostActionController (repository);
     _followActionController = new FollowActionController (repository);
     _wallActionController = new WallActionController (repository);
     _readActionController = new ReadActionController (repository);
 }
		public FeedActionControllerFactory(IUserRepository repository)
		{
			_postActionController = new PostActionController (repository);
			_followActionController = new FollowActionController (repository);
			_wallActionController = new WallActionController (repository);
			_readActionController = new ReadActionController (repository);
		}
 public void Init()
 {
     _standardOut = new StringWriter ();
     Console.SetOut (_standardOut);
     User user = new User ("mcarmen");
     User anotherUser = new User ("arthur");
     anotherUser.Post("First message", DateTime.Now.AddSeconds(-30));
     User followingUser = new User ("rob");
     followingUser.Post("First message from following user",
         DateTime.Now.AddSeconds(-20));
     anotherUser.Follow(followingUser);
     _userRepositoryMock = new Mock<IUserRepository> ();
     _userRepositoryMock.Setup (x => x.GetUser (user.Name)).Returns (user);
     _userRepositoryMock.Setup (x => x.GetUser (anotherUser.Name)).Returns (anotherUser);
     _userRepositoryMock.Setup (x => x.GetUser (followingUser.Name)).Returns (followingUser);
     _wallController = new WallActionController (_userRepositoryMock.Object);
 }