public ImportExportServiceTests() { Host.Run(new[] { "install y" }).Wait(); Scaffold.Tables(); _context = Scaffold.EnsureContext(); _importExportService = new ImportExportService(); }
public TasksServiceTests() { Host.Run(new[] { "install y" }).Wait(); Scaffold.Tables(); _context = Scaffold.EnsureContext(); _service = new TasksService(); _instancesService = new InstancesService(); }
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; }
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); }
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() }; }