Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public PostsLogic(IPostRepository postRepository, IPostContentRepository postContentRepository, IMediaRepository mediaRepository)
 {
     _postRepository = postRepository;
     _postContentRepository = postContentRepository;
     _mediaRepository = mediaRepository;
 }
Ejemplo n.º 3
0
 public PostRepository(IPostContentRepository contentRepository)
 {
     _contentRepository = contentRepository;
 }
Ejemplo n.º 4
0
 public PostContentsLogic(IPostContentRepository postContentRepository)
 {
     _postContentRepository = postContentRepository;
 }