public AdminPanelController(BlogData blogData, IHostingEnvironment env, IBlogUnitOfWork blogUnitOfWork, ISecurityFacade securityFacade)
 {
     _blogData           = blogData;
     _hostingEnvironment = env;
     _securityFacade     = securityFacade;
     _blogUnitOfWork     = blogUnitOfWork;
 }
예제 #2
0
 /// <summary>
 /// Implementation of GetPagedPostListQuery.Handler.
 /// </summary>
 /// <param name="uow">The blog unit of work.</param>
 /// <param name="blogOptions">The blog options.</param>
 /// <param name="postUrlHelper">Post URL helper.</param>
 /// <param name="fileUrlHelper">File URL helper.</param>
 public Handler(IBlogUnitOfWork uow, IOptionsSnapshot <PineBlogOptions> blogOptions, PostUrlHelper postUrlHelper, FileUrlHelper fileUrlHelper)
 {
     _blogOptions   = blogOptions;
     _uow           = uow;
     _postUrlHelper = postUrlHelper;
     _fileUrlHelper = fileUrlHelper;
 }
예제 #3
0
        public PostRepositoryTests(MongoDbDatabaseFixture fixture) : base(fixture)
        {
            SeedDatabase();

            _uow            = ServiceProvider.GetService <IBlogUnitOfWork>();
            _postRepository = (PostRepository)_uow.Posts;
        }
예제 #4
0
        public PostRepositoryTests()
        {
            SeedDatabase();

            _dbContext      = ServiceProvider.GetRequiredService <BlogEntityDbContext>();
            _uow            = ServiceProvider.GetRequiredService <IBlogUnitOfWork>();
            _postRepository = (PostRepository)_uow.Posts;
        }
예제 #5
0
 public PostApiController(IServiceCollection collection, ILogger <PostApiController> logger,
                          IBlogUnitOfWork BlogUnitOfWork,
                          IMediator mediator,
                          IPostService PostService)
     : base(BlogUnitOfWork, collection, logger)
 {
     this._BlogUnitOfWork = BlogUnitOfWork;
     this._mediator       = mediator;
     this._PostService    = PostService;
 }
예제 #6
0
 public PostController(IBlogUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
예제 #7
0
 public BlogSettingsRepositoryTests()
 {
     _dbContext = ServiceProvider.GetRequiredService <BlogEntityDbContext>();
     _uow       = ServiceProvider.GetRequiredService <IBlogUnitOfWork>();
     _blogSettingsRepository = (BlogSettingsRepository)_uow.BlogSettings;
 }
예제 #8
0
 public BlogController(IBlogUnitOfWork blogUnitOfWork)
 {
     _blogUnitOfWork = blogUnitOfWork;
 }
예제 #9
0
 /// <summary>
 /// Implementation of UnpublishPostCommand.Handler.
 /// </summary>
 /// <param name="uow">The blog unit of work.</param>
 public Handler(IBlogUnitOfWork uow)
 {
     _uow = uow;
 }
예제 #10
0
 public WriterPanelController(IBlogUnitOfWork blogUnitOfWork, ISecurityFacade securityFacade)
 {
     _blogUnitOfWork = blogUnitOfWork;
     _securityFacade = securityFacade;
 }
예제 #11
0
 public CommentService(IBlogUnitOfWork blogUnitOfWork)
 {
     _blogUnitOfWork = blogUnitOfWork;
 }
예제 #12
0
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="unitofwork">The current Unit of Work</param>
 public AlbumRepository(IBlogUnitOfWork unitofwork) : base(unitofwork)
 {
 }
 public BlogSettingsRepositoryTests(GitDbFixture fixture) : base(fixture)
 {
     _uow = ServiceProvider.GetRequiredService <IBlogUnitOfWork>();
     _blogSettingsRepository = (BlogSettingsRepository)_uow.BlogSettings;
 }
예제 #14
0
 public CommentsController(IBlogUnitOfWork blogUnitOfWork)
 {
     _blogUnitOfWork = blogUnitOfWork;
 }
 public CreateCommentHandler(IBlogUnitOfWork blogUnitOfWork, IMapper mapper)
 {
     _blogUnitOfWork = blogUnitOfWork;
     _mapper         = mapper;
 }
예제 #16
0
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="unitofwork">The current Unit of Work</param>
 public CommentRepository(IBlogUnitOfWork unitofwork) : base(unitofwork)
 {
 }
 /// <summary>
 /// Implementation of UpdateBlogSettingsCommand.Handler.
 /// </summary>
 /// <param name="uow">The blog unit of work.</param>
 /// <param name="fileUrlHelper">File URL helper.</param>
 public Handler(IBlogUnitOfWork uow, FileUrlHelper fileUrlHelper)
 {
     _uow           = uow;
     _fileUrlHelper = fileUrlHelper;
 }
예제 #18
0
 public BookService(IBlogUnitOfWork blogUnitOfWork)
 {
     _blogUnitOfWork = blogUnitOfWork;
 }
 public CommentController(IBlogUnitOfWork blogUnitOf)
 {
     _blogUnitOf = blogUnitOf;
 }
예제 #20
0
 public HomeController(ILogger <HomeController> logger, DatabaseContext context, IBlogUnitOfWork blogUnitOfWork)
 {
     _logger         = logger;
     _context        = context;
     _blogUnitOfWork = blogUnitOfWork;
 }
예제 #21
0
 public UserService(IBlogUnitOfWork uow)
 {
     _uow = uow;
 }
예제 #22
0
 public AuthorRepositoryTests(GitDbFixture fixture) : base(fixture)
 {
     _uow = ServiceProvider.GetRequiredService <IBlogUnitOfWork>();
     _authorRepository = (AuthorRepository)_uow.Authors;
 }
예제 #23
0
 public UnlikePostHandler(IBlogUnitOfWork blogUnitOfWork)
 {
     _blogUnitOfWork = blogUnitOfWork;
 }
예제 #24
0
 public CategoryService(IBlogUnitOfWork blogUnitOfWork)
 {
     _blogUnitOfWork = blogUnitOfWork;
 }
 public GetPostsHandler(IBlogUnitOfWork blogUnitOfWork, IMapper mapper)
 {
     _blogUnitOfWork = blogUnitOfWork;
     _mapper         = mapper;
 }
예제 #26
0
 /// <summary>
 /// Implementation of GetBlogSettigsQuery.Handler.
 /// </summary>
 /// <param name="uow">The blog unit of work.</param>
 /// <param name="fileUrlHelper">File URL helper.</param>
 /// <param name="blogOptions">Blog options.</param>
 public Handler(IBlogUnitOfWork uow, FileUrlHelper fileUrlHelper, IOptionsSnapshot <PineBlogOptions> blogOptions)
 {
     _uow           = uow;
     _fileUrlHelper = fileUrlHelper;
     _blogOptions   = blogOptions;
 }
예제 #27
0
 public ArticleService(IBlogUnitOfWork uow)
 {
     _uow = uow;
 }
예제 #28
0
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="unitofwork">The current Unit of Work</param>
 public VideoRepository(IBlogUnitOfWork unitofwork) : base(unitofwork)
 {
     this.currentunitofwork = unitofwork;
 }
예제 #29
0
 public UserService(IBlogUnitOfWork uow)
 {
     _uow = uow;
 }
예제 #30
0
 public UnlikeCommentHandler(IBlogUnitOfWork blogUnitOfWork)
 {
     _blogUnitOfWork = blogUnitOfWork;
 }
예제 #31
0
 public BlogComposeService(IBlogUnitOfWork blogUnitOfWork)
 {
     _blogUnitOfWork = blogUnitOfWork;
 }
예제 #32
0
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="unitofwork">current unit of work</param>
 public Repository(IBlogUnitOfWork unitofwork)
 {
     this.unitofwork = unitofwork;
 }
예제 #33
0
 public SettingService(IBlogUnitOfWork blogUnitOfWork)
 {
     _blogUnitOfWork = blogUnitOfWork;
 }
예제 #34
0
 /// <summary>
 /// Implementation of AddPostCommand.Handler.
 /// </summary>
 /// <param name="uow">The blog unit of work.</param>
 /// <param name="postUrlHelper">Post URL helper.</param>
 public Handler(IBlogUnitOfWork uow, PostUrlHelper postUrlHelper)
 {
     _uow           = uow;
     _postUrlHelper = postUrlHelper;
 }
예제 #35
0
 public ManagePostController(IServiceCollection collection, ILogger <ManagePostController> logger,
                             IBlogUnitOfWork blogUnitOfWork)//:/*base(collection, logger)*/
 {
     _blogUnitOfWork = blogUnitOfWork;
 }