public UserGetModule(IUserRepository userRepository, IGetUserResponseMapper responseMapper, IPostRepository postRepository, IPostMapper postMapper) { _userRepository = userRepository; _responseMapper = responseMapper; _postRepository = postRepository; _postMapper = postMapper; }
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); }
public GetAllPostsHandler(IPostRepository postRepository, IPostMapper postMapper) { this.postRepository = postRepository; this.postMapper = postMapper; }
public PostRepository(dynamic connection, IPostMapper mapper) { _mapper = mapper; _connection = connection; }
public PostsService(BlogDbContext blogDbContext, IPostMapper postMapper) { _blogDbContext = blogDbContext; _postMapper = postMapper; }
public GetRandomPostModule(IPostRepository postRepository, IPostMapper postMapper) { _postRepository = postRepository; _postMapper = postMapper; }
public void SetUp() { _sut = new PostMapper(new UserMapper()); }
public GetPostsModule(IPostRepository postRepository, IPostMapper postMapper) { _postRepository = postRepository; _postMapper = postMapper; }
public PostService(IPostRepository postRepository, IPostMapper postMapper) { _postRepository = postRepository; _postMapper = postMapper; }