public BlogPostManager_Tests() { this.blogPostManager = GetRequiredService <IBlogPostManager>(); this.guidGenerator = GetRequiredService <IGuidGenerator>(); this.blogPostRepository = GetRequiredService <IBlogPostRepository>(); this.cmsKitTestData = GetRequiredService <CmsKitTestData>(); }
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; }
public BlogPostController(IBlogPostManager manager) { _manager = manager ?? throw new ArgumentNullException(nameof(manager)); }
public ServicesController(IBlogPostManager post) { _post = post; }
public BlogPostsController(AppSettings appSettings, IBlogPostManager manager, UserManager <ApplicationUser> userManager) : base(appSettings, userManager) { this.manager = manager; }
public BlogController(AppSettings settings, UserManager <ApplicationUser> userManager, IBlogPostManager blogManager) : base(settings, userManager) { this.blogManager = blogManager; }