Esempio n. 1
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);
        }