Пример #1
0
        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;
        }
Пример #2
0
        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);
        }