public AssetService(IAppServiceRepository svcRepo, IThemeService themeSvc, ILogService logSvc)
 {
   AppServiceRepository = svcRepo;
   ThemeService = themeSvc;
   LogService = logSvc;
   Assets = new Collection<Asset>();
 }
 public RouteService(IAppServiceRepository svcRepo, RequestContext context, RouteCollection routes, ILogService logger)
 {
   AppService = svcRepo.GetService();
   Routes = routes;
   Context = context;
   LogService = logger;
 }
        public ThemeSwitcherService(IThemeService themeService, IAtomPubService atomPubService, IAppServiceRepository appServiceRepository)
        {
            this.appServiceRepository = appServiceRepository;
            this.atomPubService = atomPubService;

            ThemeService = themeService;
        }
 public ThemeService(IAppServiceRepository svcRepo, string appPath, ILogService logger)
 {
     AppServiceRepository = svcRepo;
     LogService = logger;
     AppPath = appPath;
     ThemePath = Path.Combine(appPath, "themes");
 }
 public AdditionalWidgetsController(IAtomPubService atompub, IAnnotateService annotate, IAppServiceRepository svcRepo, IAtomEntryRepository entryRepo)
     : base()
 {
     AtomPubService = atompub;
     AnnotateService = annotate;
     AppServiceRepository = svcRepo;
     AtomEntryRepository = entryRepo;
 }
 public BaseRouteRegistrar(IAppServiceRepository svcRepo, List<SiteRoute> routes, int defaultMerit)
 {
   this.AppService = svcRepo.GetService();
   this.BasePath = GetBasePath();
   this.Routes = routes;
   this.RouteServiceType = typeof(RouteService).AssemblyQualifiedName;
   this.DefaultMerit = defaultMerit;
 }
 public BlogMLService(IAppServiceRepository svcRepo, IAtomPubService atompub, IAnnotateService annotate,
   IUserRepository usersRepo, IAuthorizeService auth, ILogService logger)
 {
   AppServiceRepository = svcRepo;
   AtomPubService = atompub;
   AnnotateService = annotate;
   UserRepository = usersRepo;
   AuthorizeService = auth;
   LogService = logger;
   progress = new Progress();
 }
 public WizardController(IAppServiceRepository svcRepo, IAtomEntryRepository entryRepo,
   IMediaRepository mediaRepo,
   IUserRepository userRepo, IThemeService theme, ILogService logger)
 {
     AppServiceRepository = svcRepo;
     MediaRepository = mediaRepo;
     AtomEntryRepository = entryRepo;
     UserRepository = userRepo;
     LogService = logger;
     ThemeService = theme;
 }
 public AdminService(IAtomPubService atompub, IAnnotateService anno, IAuthorizeService auth,
   ILogService logger, IRouteService route, IThemeService themeSvc, IAppServiceRepository svcRepo)
 {
   AtomPubService = atompub;
   AnnotateService = anno;
   AuthorizeService = auth;
   RouteService = route;
   LogService = logger;
   ThemeService = themeSvc;
   AppServiceRepository = svcRepo;
   atompub.SettingEntryLinks += (e) => SetLinks(e);
 }
    public TrackbackService(IAppServiceRepository svcRepo, IAtomPubService atompub,
      IAnnotateService annotate, IAtomEntryRepository entryRepo,
      IContainer container, ILogService logger)
    {
      LogService = logger;
      AppService = svcRepo.GetService();
      Container = container;
      AnnotateService = annotate;
      AtomEntryRepository = entryRepo;

      atompub.EntryCreated += AutoPing;
      atompub.EntryUpdated += AutoPing;
    }
    public AnnotateService(IContainer container, IAtomPubService atompub, IAppServiceRepository svcRepo, IAuthorizeService auth,
      IAtomEntryRepository entryRepo, IMediaRepository mediaRepo, ILogService logger)
    {
      AppService = svcRepo.GetService();
      AtomPubService = atompub;
      AuthorizeService = auth;
      AtomEntryRepository = entryRepo;
      MediaRepository = mediaRepo;
      Container = container;
      LogService = logger;

      atompub.SettingEntryLinks += (e) => SetLinks(e);
      atompub.SettingFeedLinks += (f) => SetLinks(f);
    }
 public AtomPubService(
     IAppServiceRepository appServiceRepository,
     IAppCategoriesRepository appCategoriesRepository,
     IAtomEntryRepository atomEntryRepository,
     IMediaRepository mediaRepository,
     IAuthorizeService authorizeService,
     IContainer container, 
   ILogService logger)
 {
   this.AppServiceRepository = appServiceRepository;
   this.AppCategoriesRepository = appCategoriesRepository;
   this.AtomEntryRepository = atomEntryRepository;
   this.MediaRepository = mediaRepository;
   this.AuthorizeService = authorizeService;
   this.Container = container;
   this.LogService = logger;
 }
 public BlogService(IAtomPubService atompub, IAnnotateService annotate,
   IAppServiceRepository svcRepo, IContainer container,
     IAtomEntryRepository entryRepo, IAuthorizeService auth, ILogService logger,
   ICleanContentService cleaner)
 {
   this.AppService = svcRepo.GetService();
   this.AppServiceRepository = svcRepo;
   this.AtomEntryRepository = entryRepo;
   this.Container = container;
   this.AnnotateService = annotate;
   this.AuthorizeService = auth;
   this.LogService = logger;
   this.CleanContentService = cleaner;
   atompub.CreatingEntry += OnModifyEntry;
   atompub.UpdatingEntry += OnModifyEntry;
   annotate.AnnotatingEntry += OnAnnotateEntry;
   atompub.SettingEntryLinks += (e) => SetLinks(e);
   atompub.SettingFeedLinks += (f) => SetLinks(f);
 }
 public MenuController(IAppServiceRepository svcRepo)
 {
   AppServiceRepository = svcRepo;
 }
 public TwitterController(TwitterService twitterService, IAppServiceRepository svcRepo)
 {
   TwitterService = twitterService;
   AppServiceRepository = svcRepo;
 }
 public FileAppCategoriesRepository(IAppServiceRepository svcRepo)
   : this(HostingEnvironment.ApplicationPhysicalPath, svcRepo) { }
 public FileAppCategoriesRepository(string storePath, IAppServiceRepository svcRepo)
 {
   pathResolver = new PathResolver(storePath, svcRepo.GetService());
 }
 public TrackbackRouteRegistrar(IAppServiceRepository svcRepo, List<SiteRoute> routes, int defaultMerit)
   : base(svcRepo, routes, defaultMerit) { }
 public AdminRouteService(IAppServiceRepository svcRepo, RequestContext context, RouteCollection routes, ILogService logger)
   : base(svcRepo, context, routes, logger)
 { }
 public FileAtomEntryRepository(string storePath, IAppServiceRepository svcRepo)
 {
   pathResolver = new PathResolver(storePath, svcRepo.GetService());
 }
 public FileAtomEntryRepository(IAppServiceRepository svcRepo) :
   this(HostingEnvironment.ApplicationPhysicalPath, svcRepo) { }
 public BlogMLController(IBlogMLService svc, IAppServiceRepository svcRepo)
 {
   BlogMLService = svc;
   AppServiceRepository = svcRepo;
 }
 public GA4AtomSiteController(IAppServiceRepository appServiceRepository)
 {
     AppServiceRepository = appServiceRepository;
 }
 public ServiceAuthorizeService(IAppServiceRepository svcRepo, ILogService logger)
 {
   this.AppServiceRepository = svcRepo;
   this.LogService = logger;
 }
 public FileMediaRepository(string storePath, IAppServiceRepository svcRepo, IAtomEntryRepository entryRepo)
 {
   pathResolver = new PathResolver(storePath, svcRepo.GetService());
   atomEntryRepository = entryRepo;
 }
        private void DeleteWorkspace(IAppServiceRepository repository, string workspaceName)
        {
            AppService appService = repository.GetService();

            int initialCount = appService.Workspaces.Count();

            appService.Workspaces = appService.Workspaces.RemoveByName(workspaceName);

            Assert.AreEqual(initialCount - 1, appService.Workspaces.Count(), "Workspace was not removed");

            repository.UpdateService(appService);

            appService = repository.GetService();

            // check that it's gone
            AppWorkspace workspace = appService.Workspaces.FindByName(workspaceName);

            Assert.IsNull(workspace, "Workspace was not deleted " + workspaceName);
        }