Пример #1
0
        public override MultistepActionSettings Setup(int dbId, int siteId, bool?boundToExternal)
        {
            var site = GetSite(siteId);

            if (site.IsDotNet)
            {
                Commands.Add(new CreateFoldersCommand(siteId, site.Name));
                Commands.Add(new AssembleNotificationsCommand(siteId, site.Name, true));

                var pagesCommand = new AssemblePagesCommand(siteId, site.Name, true, true);
                pagesCommand.Setup();
                Commands.Add(pagesCommand);

                var templatesCommand = new AssembleTemplatesCommand(siteId, site.Name);
                templatesCommand.Setup();
                Commands.Add(templatesCommand);
            }
            else
            {
                var pagesCommand = new AssemblePagesCommand(siteId, site.Name, true, false);
                pagesCommand.Setup();
                Commands.Add(pagesCommand);
            }

            return(base.Setup(dbId, siteId, boundToExternal));
        }
Пример #2
0
 public override void TearDown()
 {
     AssembleTemplatesCommand.TearDown();
     AssemblePagesCommand.TearDown();
     base.TearDown();
 }