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.Post ("Message",
             DateTime.Now.AddSeconds(-30));
     User otherUser = new User ("rob");
     User anotherUser = new User ("arthur");
     anotherUser.Post ("1 Message",
             DateTime.Now.AddSeconds(-30));
     anotherUser.Post ("2 Message",
                 DateTime.Now.AddSeconds(-20));
     _userRepositoryMock = new Mock<IUserRepository> ();
     _userRepositoryMock.Setup (x => x.GetUser (user.Name)).Returns (user);
     _userRepositoryMock.Setup (x => x.GetUser (otherUser.Name)).Returns (otherUser);
     _userRepositoryMock.Setup (x => x.GetUser (anotherUser.Name)).Returns (anotherUser);
     _readController = new ReadActionController (_userRepositoryMock.Object);
 }