public BlogPostPropertiesService(IRepository repository, IMediaFileUrlResolver fileUrlResolver,
     IBlogSaveService blogSaveService, ISecurityService securityService, IPageService pageService,
     Module.Root.Services.IOptionService optionService, BetterCms.Module.Root.Services.ICategoryService categoriesService)
 {
     this.repository = repository;
     this.fileUrlResolver = fileUrlResolver;
     this.blogSaveService = blogSaveService;
     this.securityService = securityService;
     this.pageService = pageService;
     this.optionService = optionService;
     this.categoriesService = categoriesService;
 }
 private void OnHostStart(BetterCms.Events.SingleItemEventArgs<System.Web.HttpApplication> args)
 {
 }
        private void CreateContents(ISession session, bool saveDraft, out BetterCms.Module.Pages.Models.HtmlContent parent, out BetterCms.Module.Pages.Models.HtmlContent draft)
        {
            parent = TestDataProvider.CreateNewHtmlContent();
            parent.Status = ContentStatus.Published;
            parent.PublishedOn = DateTime.Now;
            parent.PublishedByUser = "******";
            session.SaveOrUpdate(parent);

            if (saveDraft)
            {
                draft = TestDataProvider.CreateNewHtmlContent();
                draft.Status = ContentStatus.Draft;
                draft.PublishedOn = null;
                draft.PublishedByUser = null;
                draft.Original = parent;
                session.SaveOrUpdate(draft);
            }
            else
            {
                draft = null;
            }

            session.Flush();
            session.Clear();
        }
 private void OnHostAuthenticateRequest(BetterCms.Events.SingleItemEventArgs<System.Web.HttpApplication> args)
 {
 }