Exemplo n.º 1
0
 public CommonUtilitiesTests(ITestOutputHelper outputHelper)
 {
     loadContext   = new DefaultAssemblyLoadContext();
     _outputHelper = outputHelper;
 }
Exemplo n.º 2
0
        public CodeModelService(IProjectContext context, Workspace workspace, ILogger logger, ICodeGenAssemblyLoadContext loader)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            if (workspace == null)
            {
                throw new ArgumentNullException(nameof(workspace));
            }

            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }

            _loader         = loader;
            _projectContext = context;
            _workspace      = workspace;

            _logger = logger;
        }
Exemplo n.º 3
0
        public IdentityGenerator(IApplicationInfo applicationInfo,
                                 IServiceProvider serviceProvider,
                                 ICodeGeneratorActionsService actionService,
                                 IProjectContext projectContext,
                                 IConnectionStringsWriter connectionStringsWriter,
                                 Workspace workspace,
                                 ICodeGenAssemblyLoadContext loader,
                                 IFileSystem fileSystem,
                                 ILogger logger)
        {
            if (applicationInfo == null)
            {
                throw new ArgumentNullException(nameof(applicationInfo));
            }

            if (serviceProvider == null)
            {
                throw new ArgumentNullException(nameof(serviceProvider));
            }

            if (actionService == null)
            {
                throw new ArgumentNullException(nameof(actionService));
            }

            if (projectContext == null)
            {
                throw new ArgumentNullException(nameof(projectContext));
            }

            if (connectionStringsWriter == null)
            {
                throw new ArgumentNullException(nameof(connectionStringsWriter));
            }

            if (workspace == null)
            {
                throw new ArgumentNullException(nameof(workspace));
            }

            if (loader == null)
            {
                throw new ArgumentNullException(nameof(loader));
            }

            if (fileSystem == null)
            {
                throw new ArgumentNullException(nameof(fileSystem));
            }

            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }

            _applicationInfo            = applicationInfo;
            _serviceProvider            = serviceProvider;
            _codegeneratorActionService = actionService;
            _projectContext             = projectContext;
            _connectionStringsWriter    = connectionStringsWriter;
            _workspace  = workspace;
            _loader     = loader;
            _fileSystem = fileSystem;
            _logger     = logger;
        }
Exemplo n.º 4
0
 public CommonUtilitiesTests()
     : base(Path.Combine(testAppPath))
 {
     loadContext = new DefaultAssemblyLoadContext();
 }
Exemplo n.º 5
0
        public EntityFrameworkServices(
            ILibraryManager libraryManager,
            ILibraryExporter libraryExporter,
            IApplicationInfo applicationInfo,
            ICodeGenAssemblyLoadContext loader,
            IModelTypesLocator modelTypesLocator,
            IDbContextEditorServices dbContextEditorServices,
            IPackageInstaller packageInstaller,
            IServiceProvider serviceProvider,
            Workspace workspace,
            ILogger logger)
        {
            if (libraryManager == null)
            {
                throw new ArgumentNullException(nameof(libraryManager));
            }

            if (libraryExporter == null)
            {
                throw new ArgumentNullException(nameof(libraryExporter));
            }

            if (applicationInfo == null)
            {
                throw new ArgumentNullException(nameof(applicationInfo));
            }

            if (loader == null)
            {
                throw new ArgumentNullException(nameof(loader));
            }

            if (modelTypesLocator == null)
            {
                throw new ArgumentNullException(nameof(modelTypesLocator));
            }

            if (dbContextEditorServices == null)
            {
                throw new ArgumentNullException(nameof(dbContextEditorServices));
            }

            if (packageInstaller == null)
            {
                throw new ArgumentNullException(nameof(packageInstaller));
            }

            if (serviceProvider == null)
            {
                throw new ArgumentNullException(nameof(serviceProvider));
            }

            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }

            if (workspace == null)
            {
                throw new ArgumentNullException(nameof(workspace));
            }

            _libraryManager          = libraryManager;
            _libraryExporter         = libraryExporter;
            _applicationInfo         = applicationInfo;
            _loader                  = loader;
            _modelTypesLocator       = modelTypesLocator;
            _dbContextEditorServices = dbContextEditorServices;
            _packageInstaller        = packageInstaller;
            _serviceProvider         = serviceProvider;
            _logger                  = logger;
            _workspace               = workspace;
        }