public ImportExportServiceTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();

            _importExportService = new ImportExportService();
        }
        public ImportExportRepositoryTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();

            _repo = new ImportExportRepository();
        }
Exemplo n.º 3
0
        public PocoRepositoryTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();

            _repo = new PocoRepository();
        }
Exemplo n.º 4
0
        public SettingsServiceTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();

            _service = new SettingsService();
            _repo    = new PocoRepository();
        }
Exemplo n.º 5
0
        public ContentExtensionsTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();

            _contentService     = ApplicationContext.Current.Services.ContentService;
            _contentTypeService = ApplicationContext.Current.Services.ContentTypeService;
        }
Exemplo n.º 6
0
        public InstancesServiceTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();
            Scaffold.Config();

            _service = new InstancesService();
        }
        public GroupServiceTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();

            // even though it's not being used, this needs to stay
            _mocker       = new ContextMocker();
            _groupService = new GroupService();
        }
Exemplo n.º 8
0
        public InstancesServiceTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();
            Scaffold.Config();
            Scaffold.ContentType(ApplicationContext.Current.Services.ContentTypeService);

            _service      = new InstancesService();
            _tasksService = new TasksService();
        }
Exemplo n.º 9
0
        public SettingsControllerTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();

            _settingsController = new SettingsController(UmbracoContext.Current)
            {
                Request       = new HttpRequestMessage(),
                Configuration = new HttpConfiguration()
            };
        }
Exemplo n.º 10
0
        public ConfigServiceTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();
            Scaffold.Config();

            _configService = new ConfigService(new PocoRepository());

            _contentService     = ApplicationContext.Current.Services.ContentService;
            _contentTypeService = ApplicationContext.Current.Services.ContentTypeService;
        }
Exemplo n.º 11
0
        public PreviewServiceTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();

            // even though it's not being used, this needs to stay
            _mocker           = new ContextMocker();
            _previewService   = new PreviewService();
            _tasksService     = new TasksService();
            _instancesService = new InstancesService();
        }
Exemplo n.º 12
0
        public GroupControllerTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();

            // not testing this, but need it for quickly creating groups
            _groupService = new GroupService();

            _groupsController = new GroupsController(UmbracoContext.Current)
            {
                Request       = new HttpRequestMessage(),
                Configuration = new HttpConfiguration()
            };
        }
Exemplo n.º 13
0
        public TasksControllerTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();

            _contentService     = ApplicationContext.Current.Services.ContentService;
            _contentTypeService = ApplicationContext.Current.Services.ContentTypeService;
            _tasksService       = new TasksService();
            _instancesService   = new InstancesService();
            _configService      = new ConfigService();

            _tasksController = new TasksController
            {
                Request       = new HttpRequestMessage(),
                Configuration = new HttpConfiguration()
            };
        }
Exemplo n.º 14
0
 public TaskInstanceExtensionsTests()
 {
     Host.Run(new[] { "install y" }).Wait();
     Scaffold.Run();
 }
Exemplo n.º 15
0
        public DocumentPublishProcessTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();
        }