Example #1
0
 public UserGetModule(IUserRepository userRepository, IGetUserResponseMapper responseMapper, IPostRepository postRepository, IPostMapper postMapper)
 {
     _userRepository = userRepository;
     _responseMapper = responseMapper;
     _postRepository = postRepository;
     _postMapper     = postMapper;
 }
Example #2
0
 public PostService(IPostRepository postRepository,
                    IPostMapper postMapper, IPostCommentMapper postCommentMapper, ILogger <PostService> logger)
 {
     _postRepository    = postRepository;
     _postMapper        = postMapper;
     _postCommentMapper = postCommentMapper;
     _logger            = logger;
 }
 public QuestPostService(
     IRedditCloneUnitOfWork redditCloneUnitOfWork,
     ICookieService cookieService,
     IPostMapper postMapper)
 {
     this.redditCloneUnitOfWork = redditCloneUnitOfWork;
     this.cookieService         = cookieService;
     this.postMapper            = postMapper;
 }
 public UserPostService(
     IRedditCloneUnitOfWork redditCloneUnitOfWork,
     UserManager <User> userManager,
     ICookieService cookieService,
     IPostMapper postMapper)
 {
     this.redditCloneUnitOfWork = redditCloneUnitOfWork;
     this.userManager           = userManager;
     this.cookieService         = cookieService;
     this.postMapper            = postMapper;
 }
        public void SetUp()
        {
            _mapper = new PostMapper(new UserMapper());

            var tables = new List<string>
            {
                CreateTableUsers,
                CreateTablePosts,
                CreateTableLikes
            };

            var inserts = new List<string>
            {
                InsertMainUser,
                InsertLikeUser01,
                InsertLikeUser02,
                InsertPost,
                InsertLike01,
                InsertLike02
            };

            _connection = DbUtils.CreateConnection("TestDbPostRepository.sdf", tables, inserts);
               _sut = new PostRepository(_connection,_mapper);
        }
Example #6
0
 public GetAllPostsHandler(IPostRepository postRepository, IPostMapper postMapper)
 {
     this.postRepository = postRepository;
     this.postMapper     = postMapper;
 }
Example #7
0
 public PostRepository(dynamic connection, IPostMapper mapper)
 {
     _mapper = mapper;
     _connection = connection;
 }
Example #8
0
 public PostsService(BlogDbContext blogDbContext, IPostMapper postMapper)
 {
     _blogDbContext = blogDbContext;
     _postMapper    = postMapper;
 }
 public GetRandomPostModule(IPostRepository postRepository, IPostMapper postMapper)
 {
     _postRepository = postRepository;
     _postMapper     = postMapper;
 }
Example #10
0
 public void SetUp()
 {
     _sut = new PostMapper(new UserMapper());
 }
Example #11
0
 public GetPostsModule(IPostRepository postRepository, IPostMapper postMapper)
 {
     _postRepository = postRepository;
     _postMapper     = postMapper;
 }
Example #12
0
 public PostService(IPostRepository postRepository, IPostMapper postMapper)
 {
     _postRepository = postRepository;
     _postMapper     = postMapper;
 }