public UnitOfWork(BlogContext context, IPostRepository posts, IPostContentRepository postContents, ICommentRepository comments, ITagRepository tags, IRatingRepository ratings, IVerificationRepository authorVerifications, IVerificationStatusRepository verificationStatuses, IProfileRepository userProfiles, UserManager <User> userManager, RoleManager <IdentityRole> roleManager, SignInManager <User> signInManager) { _context = context; Posts = posts; PostContents = postContents; Comments = comments; Tags = tags; Ratings = ratings; AuthorVerifications = authorVerifications; VerificationStatuses = verificationStatuses; UserProfiles = userProfiles; UserManager = userManager; RoleManager = roleManager; SignInManager = signInManager; }
public PostsLogic(IPostRepository postRepository, IPostContentRepository postContentRepository, IMediaRepository mediaRepository) { _postRepository = postRepository; _postContentRepository = postContentRepository; _mediaRepository = mediaRepository; }
public PostRepository(IPostContentRepository contentRepository) { _contentRepository = contentRepository; }
public PostContentsLogic(IPostContentRepository postContentRepository) { _postContentRepository = postContentRepository; }