Esempio n. 1
0
 public BlogPostManager_Tests()
 {
     this.blogPostManager    = GetRequiredService <IBlogPostManager>();
     this.guidGenerator      = GetRequiredService <IGuidGenerator>();
     this.blogPostRepository = GetRequiredService <IBlogPostRepository>();
     this.cmsKitTestData     = GetRequiredService <CmsKitTestData>();
 }
Esempio n. 2
0
        public BlogPostAdminAppService(
            IRepository <BlogPost, Guid> repository,
            IBlogPostManager blogPostManager,
            IBlogPostRepository blogPostRepository,
            IBlogRepository blogRepository,
            IBlobContainer <BlogPostCoverImageContainer> blobContainer,
            ICmsUserLookupService userLookupService) : base(repository)
        {
            BlogPostManager    = blogPostManager;
            BlogPostRepository = blogPostRepository;
            BlogRepository     = blogRepository;
            BlobContainer      = blobContainer;
            UserLookupService  = userLookupService;

            GetListPolicyName = CmsKitAdminPermissions.BlogPosts.Default;
            GetPolicyName     = CmsKitAdminPermissions.BlogPosts.Default;
            CreatePolicyName  = CmsKitAdminPermissions.BlogPosts.Create;
            UpdatePolicyName  = CmsKitAdminPermissions.BlogPosts.Update;
            DeletePolicyName  = CmsKitAdminPermissions.BlogPosts.Delete;
        }
Esempio n. 3
0
 public BlogPostController(IBlogPostManager manager)
 {
     _manager = manager
                ?? throw new ArgumentNullException(nameof(manager));
 }
Esempio n. 4
0
 public ServicesController(IBlogPostManager post)
 {
     _post = post;
 }
Esempio n. 5
0
 public BlogPostsController(AppSettings appSettings, IBlogPostManager manager, UserManager <ApplicationUser> userManager) : base(appSettings, userManager)
 {
     this.manager = manager;
 }
Esempio n. 6
0
 public BlogController(AppSettings settings, UserManager <ApplicationUser> userManager, IBlogPostManager blogManager) : base(settings, userManager)
 {
     this.blogManager = blogManager;
 }