public List<Post> GetWallPosts(string forUserName, string viewerUserName) { var currentUser = GetUser(viewerUserName); var context = new HandlerContext(Clock, Store, currentUser); var handler = new GetWall.Handler(context); var response = handler.Handle(new GetWall.Request { UserName = forUserName }); return response.Posts; }
public List <Post> GetWallPosts(string forUserName, string viewerUserName) { var currentUser = GetUser(viewerUserName); var context = new HandlerContext(Clock, Store, currentUser); var handler = new GetWall.Handler(context); var response = handler.Handle(new GetWall.Request { UserName = forUserName }); return(response.Posts); }