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

            _context = Scaffold.EnsureContext();

            _importExportService = new ImportExportService();
        }
Пример #2
0
        public TasksServiceTests()
        {
            Host.Run(new[] { "install y" }).Wait();
            Scaffold.Tables();

            _context = Scaffold.EnsureContext();

            _service          = new TasksService();
            _instancesService = new InstancesService();
        }
Пример #3
0
        public ConfigServiceTests()
        {
            Host.Run(new[] { "install y" }).Wait();
            Scaffold.Tables();

            _context = Scaffold.EnsureContext();

            _configService = new ConfigService();

            _contentService     = ApplicationContext.Current.Services.ContentService;
            _contentTypeService = ApplicationContext.Current.Services.ContentTypeService;
        }
Пример #4
0
        public UtilityTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Tables();
            Scaffold.EnsureContext();

            _contentService     = ApplicationContext.Current.Services.ContentService;
            _contentTypeService = ApplicationContext.Current.Services.ContentTypeService;
            _configService      = new ConfigService();

            _utility = new WorkflowUtility(
                new PocoRepository(),
                ApplicationContext.Current.Services.UserService,
                _contentTypeService,
                _contentService,
                UmbracoContext.Current);
        }
Пример #5
0
        public TasksControllerTests()
        {
            Host.Run(new[] { "install y" }).Wait();
            Scaffold.Tables();

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

            _tasksController = new TasksController(_context)
            {
                Request       = new HttpRequestMessage(),
                Configuration = new HttpConfiguration()
            };
        }