Пример #1
0
 public FirstSetupRepo()
 {
     this.session             = HibernateUtil.OpenSession(false);
     this.userRepo            = new UserRepository(session);
     this.projectRepo         = new ProjectRepository(session);
     this.certificateTypeRepo = new InspectorCertificateTypeRepository(session);
     this.seemTypeRepo        = new SeamTypeRepository(session);
     this.permissionRepo      = new PermissionRepository(session);
     this.roleRepo            = new RoleRepository(session);
     this.categoryRepo        = new CategoryRepository(session);
     this.jointOperationRepo  = new JointOperationRepository(session);
     this.pipeTestsRepo       = new PipeTestRepository(session);
     this.sizeTypeRepo        = new MillPipeSizeTypeRepository(session);
     this.plateManRepo        = new PlateManufacturerRepository(session);
     this.heatRepo            = new HeatRepository(session);
     this.plateRepo           = new PlateRepository(session);
     this.purchaseRepo        = new PurchaseOrderRepository(session);
     this.railRepo            = new RailcarRepository(session);
     this.pipeRepo            = new PipeRepository(session);
     this.inspectorRepo       = new InspectorRepository(session);
     this.pipeTestResultRepo  = new PipeTestResultRepository(session);
     this.welderRepo          = new WelderRepository(session);
     componentTypeRepo        = new ComponentTypeRepository(session);
     componentRepo            = new ComponentRepository(session);
     releaseRepo            = new ReleaseNoteRepository(session);
     this.cannedMessageRepo = new CannedMessageRepository(session);
 }
Пример #2
0
 public LecturerController(ICourseRepository courseRepository, IScoreRepository scoreRepository, IUserRepository userRepository, IComponentRepository componentRepository)
 {
     _courseRepository    = courseRepository;
     _scoreRepository     = scoreRepository;
     _userRepository      = userRepository;
     _componentRepository = componentRepository;
 }
Пример #3
0
 public FirstSetupRepo()
 {
     this.session = HibernateUtil.OpenSession(false);
     this.userRepo = new UserRepository(session);
     this.projectRepo = new ProjectRepository(session);
     this.certificateTypeRepo = new InspectorCertificateTypeRepository(session);
     this.seemTypeRepo = new SeamTypeRepository(session);
     this.permissionRepo = new PermissionRepository(session);
     this.roleRepo = new RoleRepository(session);
     this.categoryRepo = new CategoryRepository(session);
     this.jointOperationRepo = new JointOperationRepository(session);
     this.pipeTestsRepo = new PipeTestRepository(session);
     this.sizeTypeRepo = new MillPipeSizeTypeRepository(session);
     this.plateManRepo = new PlateManufacturerRepository(session);
     this.heatRepo = new HeatRepository(session);
     this.plateRepo = new PlateRepository(session);
     this.purchaseRepo = new PurchaseOrderRepository(session);
     this.railRepo = new RailcarRepository(session);
     this.pipeRepo = new PipeRepository(session);
     this.inspectorRepo = new InspectorRepository(session);
     this.pipeTestResultRepo = new PipeTestResultRepository(session);
     this.welderRepo = new WelderRepository(session);
     componentTypeRepo = new ComponentTypeRepository(session);
     componentRepo = new ComponentRepository(session);
     releaseRepo = new ReleaseNoteRepository(session);
     this.cannedMessageRepo = new CannedMessageRepository(session);
 }
Пример #4
0
 public SitecoreMvcNitroTemplateHandlerFactory(AsyncLocal <HttpContext> asyncLocal,
                                               IComponentRepository componentRepository, ISitecoreRenderingRepository sitecoreRenderingRepository)
 {
     _asyncLocal                  = asyncLocal;
     _componentRepository         = componentRepository;
     _sitecoreRenderingRepository = sitecoreRenderingRepository;
 }
 public SiteDispatchService(ISiteDispatchRepository siteDispatchRepository, IWebHostEnvironment hostEnvironment, IComponentRepository compRepo, IAssignStructureComponentRepository assignRepo)
 {
     _siteDispatchRepository = siteDispatchRepository;
     _webHostEnvironment     = hostEnvironment;
     _compRepo   = compRepo;
     _assignRepo = assignRepo;
 }
 public BaseComponentWorker(ILogger <AircraftFlightWorker> logger, IComponentRepository componentRepository,
                            ICalculator calculator)
 {
     _logger = logger;
     _componentRepository = componentRepository;
     _calculator          = calculator;
 }
Пример #7
0
        public LiveRecommendationFactoryTests()
        {
            var storageAccount = CloudStorageAccount
                                 .Parse("DefaultEndpointsProtocol=https;AccountName=weirdbotdb;AccountKey=9Z+nS1VRMNQ2AqeMXpLO0aNrsEDtIQDHUQTiqHLVGgD6I34u5JcokVvb1+PuRck+WnBfV7r9ALtWaBse1UqcBQ==;EndpointSuffix=core.windows.net");

            liveRepo = new ComponentRepository(storageAccount.CreateCloudTableClient());
        }
Пример #8
0
 public NitroNetViewEngine(IViewEngineNitro viewEngine, ITemplateRepository templateRepository, IModelTypeProvider modelTypeProvider, IComponentRepository componentRepository)
 {
     _viewEngine          = viewEngine;
     _templateRepository  = templateRepository;
     _modelTypeProvider   = modelTypeProvider;
     _componentRepository = componentRepository;
 }
Пример #9
0
        public Component Put(int id, ComponentDTO value)
        {
            Component model = IComponentRepository.Get(id);

            if (value.ManufacturerId != 0)
            {
                model.ManufacturerId = value.ManufacturerId;
            }
            if (value.Quantity != 0)
            {
                model.Quantity = value.Quantity;
            }
            if (value.Name != null)
            {
                model.Name = value.Name;
            }
            if (Math.Abs(value.Price - 0.0000) < 0.0001)
            {
                model.Price = value.Price;
            }
            if (value.Quantity != -1)
            {
                model.Quantity = value.Quantity;
            }
            if (value.Status != null)
            {
                model.Status = value.Status;
            }
            if (value.Image != null)
            {
                model.Image = value.Image;
            }

            return(IComponentRepository.Update(model));
        }
 public ComponentTypeFormController(IComponentRepository componentRepository, ICategoryRepository categoryRepository, IComponentTypeRepository componentTypeRepository, EmbeddedStockContext context)
 {
     _componentTypeRepository = componentTypeRepository;
     _categoryRepository      = categoryRepository;
     _context             = context;
     _componentRepository = componentRepository;
 }
Пример #11
0
#pragma warning disable CS0618 // Type or member is obsolete

    // IDistributedLockManager is marked as obsolete, because it's not ready for "prime time"
    // however; it is used to managed singleton function execution within the functions fx !!!

    public GitHubAdapter(
        IAuthorizationSessionClient sessionClient,
        IAuthorizationTokenClient tokenClient,
        IDistributedLockManager distributedLockManager,
        ISecretsStoreProvider secretsStoreProvider,
        IHttpClientFactory httpClientFactory,
        IOrganizationRepository organizationRepository,
        IUserRepository userRepository,
        IDeploymentScopeRepository deploymentScopeRepository,
        IProjectRepository projectRepository,
        IComponentRepository componentRepository,
        IComponentTemplateRepository componentTemplateRepository,
        IAzureSessionService azureSessionService,
        IAzureResourceService azureResourceService,
        IGraphService graphService,
        IFunctionsHost functionsHost = null)
        : base(sessionClient, tokenClient, distributedLockManager, secretsStoreProvider, azureSessionService, graphService, organizationRepository, deploymentScopeRepository, projectRepository, userRepository)
    {
        this.httpClientFactory           = httpClientFactory ?? new DefaultHttpClientFactory();
        this.organizationRepository      = organizationRepository ?? throw new ArgumentNullException(nameof(organizationRepository));
        this.userRepository              = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
        this.deploymentScopeRepository   = deploymentScopeRepository ?? throw new ArgumentNullException(nameof(deploymentScopeRepository));
        this.projectRepository           = projectRepository ?? throw new ArgumentNullException(nameof(projectRepository));
        this.componentRepository         = componentRepository ?? throw new ArgumentNullException(nameof(componentRepository));
        this.componentTemplateRepository = componentTemplateRepository ?? throw new ArgumentNullException(nameof(componentTemplateRepository));
        this.azureSessionService         = azureSessionService ?? throw new ArgumentNullException(nameof(azureSessionService));
        this.azureResourceService        = azureResourceService ?? throw new ArgumentNullException(nameof(azureResourceService));
        this.graphService  = graphService ?? throw new ArgumentNullException(nameof(graphService));
        this.functionsHost = functionsHost ?? FunctionsHost.Default;
    }
Пример #12
0
 public StudentDataController(IUserRepository usrRep, ICourseRepository corRep, IScoreRepository scrRep, IComponentRepository comRep)
 {
     _usrRep = usrRep;
     _corRep = corRep;
     _scrRep = scrRep;
     _comRep = comRep;
 }
Пример #13
0
 public MonitorService(IServerRepository serverRepository,
                       IComponentRepository componentRepository,
                       IApigeeClient apigeeClient)
 {
     _serverRepository    = serverRepository;
     _componentRepository = componentRepository;
     _apigeeClient        = apigeeClient;
 }
Пример #14
0
 public ComponentController(IComponentRepository componentRepository, IProviderRepository providerRepository, IShoppingCartRepository shoppingCartRepository, IShopRepository shopRepository, IShopStockRepository shopStockRepository)
 {
     IComponentRepository    = componentRepository;
     IProviderRepository     = providerRepository;
     IShoppingCartRepository = shoppingCartRepository;
     IShopRepository         = shopRepository;
     IShopStockRepository    = shopStockRepository;
 }
Пример #15
0
 public ExportRepository(ISession session)
 {
    pipeRepo = new PipeRepository(session);
    portionRepo = new PortionRepository(session);
    projectRepo = new ProjectRepository(session);
    jointRepo = new JointRepository(session);
    componentRepo = new ComponentRepository(session);
 }
Пример #16
0
 public ExportRepository(ISession session)
 {
     pipeRepo      = new PipeRepository(session);
     portionRepo   = new PortionRepository(session);
     projectRepo   = new ProjectRepository(session);
     jointRepo     = new JointRepository(session);
     componentRepo = new ComponentRepository(session);
 }
Пример #17
0
 public ComponentRepositories(ISession session)
 {
     this.session = session;
     this.componentRepo = new ComponentRepository(session);
     this.componentTypeRepo = new ComponentTypeRepository(session);
     this.repoInspector = new InspectorRepository(session);
     this.fileRepo = new FileRepository(session);
 }
Пример #18
0
 public ComponentRepositories(ISession session)
 {
     this.session           = session;
     this.componentRepo     = new ComponentRepository(session);
     this.componentTypeRepo = new ComponentTypeRepository(session);
     this.repoInspector     = new InspectorRepository(session);
     this.fileRepo          = new FileRepository(session);
 }
Пример #19
0
        public Entity(int id, IComponentRepository repository)
        {
            Id         = id;
            Repository = repository;

            componentsAdded    = new Subject <int[]>();
            componentsRemoving = new Subject <int[]>();
            componentsRemoved  = new Subject <int[]>();
        }
Пример #20
0
 public ComponentCreateViewModel(IComponentRepository componentRepository, IErrorDataService errorDataService, IEventAggregator eventAggregator)
 {
     CreateComponentCommand = new DelegateCommand(OnCreateComponentExecute, OnComponentCreateCanExecute);
     _componentRepository   = componentRepository;
     _errorDataService      = errorDataService;
     Component        = CreateNewComponent();
     _eventAggregator = eventAggregator;
     _eventAggregator.GetEvent <AfterUserLogin>().Subscribe(OnLogin);
 }
 public DeploymentScopesController(IDeploymentScopeRepository deploymentScopeRepository,
                                   IComponentRepository componentRepository,
                                   IAdapterProvider adapterProvider,
                                   IValidatorProvider validatorProvider) : base(validatorProvider)
 {
     this.deploymentScopeRepository = deploymentScopeRepository ?? throw new ArgumentNullException(nameof(deploymentScopeRepository));
     this.componentRepository       = componentRepository ?? throw new ArgumentNullException(nameof(componentRepository));
     this.adapterProvider           = adapterProvider ?? throw new ArgumentNullException(nameof(adapterProvider));
 }
        public CompatibleComponents(Car car, Type componentType)
        {
            this.car = car;

            Type RepositoryType             = Type.GetType(componentType.Name + "Repository");
            IComponentRepository Repository = (IComponentRepository)Activator.CreateInstance(RepositoryType);

            Options = Repository.GetAllCompatibleComponents(car.Trim);
        }
 public ProjectUserCommandHandler(IOrganizationRepository organizationRepository, IProjectRepository projectRepository, IUserRepository userRepository, IComponentRepository componentRepository, IAzureSessionService azureSessionService, TeamCloudEndpointOptions endpointOptions)
 {
     this.organizationRepository = organizationRepository ?? throw new ArgumentNullException(nameof(organizationRepository));
     this.projectRepository      = projectRepository ?? throw new ArgumentNullException(nameof(projectRepository));
     this.userRepository         = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     this.componentRepository    = componentRepository ?? throw new ArgumentNullException(nameof(componentRepository));
     this.azureSessionService    = azureSessionService ?? throw new ArgumentNullException(nameof(azureSessionService));
     this.endpointOptions        = endpointOptions ?? throw new ArgumentNullException(nameof(endpointOptions));
 }
Пример #24
0
 public AdapterUpdateComponentActivity(
     IComponentRepository componentRepository,
     IDeploymentScopeRepository deploymentScopeRepository,
     IAdapterProvider adapterProvider)
 {
     this.componentRepository = componentRepository ?? throw new ArgumentNullException(nameof(componentRepository));
     this.deploymentScopeRepository = deploymentScopeRepository ?? throw new ArgumentNullException(nameof(deploymentScopeRepository));
     this.adapterProvider = adapterProvider ?? throw new ArgumentNullException(nameof(adapterProvider));
 }
Пример #25
0
 public AppCreator(IComponentRepository componentRepository, IAppTypeProvider appTypeProvider, IScriptCreator scriptCreator, IStyleCreator styleCreator, IResourceCreator resourceCreator, ITranslationRepositoryCreator translationRepositoryCreator)
 {
     ComponentRepository          = componentRepository;
     AppTypeProvider              = appTypeProvider;
     ScriptCreator                = scriptCreator;
     StyleCreator                 = styleCreator;
     ResourceCreator              = resourceCreator;
     TranslationRepositoryCreator = translationRepositoryCreator;
 }
Пример #26
0
 public ScheduleController(IScheduleRepository scheduleRepository,
                           IComponentRepository componentRepository,
                           IComponentTemplateRepository componentTemplateRepository,
                           IValidatorProvider validatorProvider) : base(validatorProvider)
 {
     this.scheduleRepository          = scheduleRepository ?? throw new ArgumentNullException(nameof(scheduleRepository));
     this.componentRepository         = componentRepository ?? throw new ArgumentNullException(nameof(componentRepository));
     this.componentTemplateRepository = componentTemplateRepository ?? throw new ArgumentNullException(nameof(componentTemplateRepository));
 }
Пример #27
0
 public OssIndexController(IOssIndexRepository ossIndexRepository, IOssIndexVulnerabilitiesRepository ossIndexVulnerabilitiesRepository,
                           IComponentRepository componentRepository, IScoreClassService scoreClassService, IBreadcrumbReportService breadcrumbService)
 {
     _ossIndexRepository = ossIndexRepository;
     _ossIndexVulnerabilitiesRepository = ossIndexVulnerabilitiesRepository;
     _componentRepository = componentRepository;
     _scoreClassService   = scoreClassService;
     _breadcrumbService   = breadcrumbService;
 }
Пример #28
0
 public PartInspectionRepository(ISession session)
 {
     this.session                  = session;
     this.repoInspector            = new InspectorRepository(session);
     this.repoInspectionTestResult = new InspectionTestResultRepository(session);
     this.repoPipe                 = new PipeRepository(session);
     this.repoSpool                = new SpoolRepository(session);
     this.repoComponent            = new ComponentRepository(session);
 }
Пример #29
0
 public TriggerFileGenerator()
 {
     _runComponentRepository         = new RunComponentStatusRepository();
     _triggerandStatusFileRepository = new TriggerandStatusFilesRepository();
     _componentRepository            = new ComponentRepository();
     _inputLocationRepository        = new ComponentInputLocationRepository();
     _outputLocationRepository       = new ComponentOutputLocationRepository();
     _clientRepository      = new ClientRepository();
     _applicationRepository = new ApplicationRepository();
 }
 public ComponentCreateCommandHandler(IComponentRepository componentRepository,
                                      IDeploymentScopeRepository deploymentScopeRepository,
                                      IAdapterProvider adapterProvider,
                                      IUserRepository userRepository)
 {
     this.componentRepository       = componentRepository ?? throw new ArgumentNullException(nameof(componentRepository));
     this.deploymentScopeRepository = deploymentScopeRepository;
     this.adapterProvider           = adapterProvider ?? throw new ArgumentNullException(nameof(adapterProvider));
     this.userRepository            = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
 }
 public PartInspectionRepository(ISession session)
 {
     this.session = session;
     this.repoInspector = new InspectorRepository(session);
     this.repoInspectionTestResult = new InspectionTestResultRepository(session);
     this.repoPipe = new PipeRepository(session);
     this.repoSpool = new SpoolRepository(session);
     this.repoComponent = new ComponentRepository(session);
     this.repoJoint = new JointRepository(session);
 }
 public ComponentController(IComponentRepository componentRepository,
                            IUserProfileRepository userProfileRepository,
                            IProjectRepository projectRepository,
                            ISubcontractorRepository subcontractorRepository)
 {
     _componentRepository     = componentRepository;
     _userProfileRepository   = userProfileRepository;
     _projectRepository       = projectRepository;
     _SubcontractorRepository = subcontractorRepository;
 }
Пример #33
0
        public Entity(int id, IComponentRepository componentRepository)
        {
            Id = id;
            ComponentRepository = componentRepository;
            componentRepository.ExpandDatabaseIfNeeded(id);

            _onComponentsAdded    = new Subject <int[]>();
            _onComponentsRemoving = new Subject <int[]>();
            _onComponentsRemoved  = new Subject <int[]>();
        }
Пример #34
0
 public PizzaService([Named("shopUnit")] IUnitOfWork unityOfWork,
                     IPizzaRepository pizzaRepository,
                     IComponentRepository componentRepository,
                     IPizzaSizePriceRepository pizzaSizePriceRepository,
                     IPizzaSizeRepository pizzaSizeRepsitory)
 {
     _unityOfWork              = unityOfWork;
     _pizzaRepository          = pizzaRepository;
     _componentRepository      = componentRepository;
     _pizzaSizePriceRepository = pizzaSizePriceRepository;
     _pizzaSizeRepsitory       = pizzaSizeRepsitory;
 }
Пример #35
0
        public ConstructionRepository(ISession session)
        {
            this.session = session;
            this.repoJoint = new JointRepository(session);
            this.repoJointTestResult = new JointTestResultRepository(session);
            this.repoJointWeldResult = new JointWeldResultRepository(session);
            this.repoJointOperation = new JointOperationRepository(session);
            this.repoInspector = new InspectorRepository(session);
            this.repoWelder = new WelderRepository(session);

            this.repoPipe = new PipeRepository(session);
            this.repoSpool = new SpoolRepository(session);
            this.repoComponent = new ComponentRepository(session);
            this.fileRepo = new FileRepository(session);
        }
Пример #36
0
 public ImportRepository(ISession session)
 {
    pipeRepo = new PipeRepository(session);
    plateRepo = new PlateRepository(session);
    heatRepo = new HeatRepository(session);
    railcarRepo = new RailcarRepository(session);
    releaseNoteRepo = new ReleaseNoteRepository(session);
    plateManufacturerRepo = new PlateManufacturerRepository(session);
    sizeTypeRepo = new MillPipeSizeTypeRepository(session);
    seamTypeRepo = new SeamTypeRepository(session);
    orderRepo = new PurchaseOrderRepository(session);
    fileRepo = new FileRepository(session);
    projectRepo = new ProjectRepository(session);
    portionRepo = new PortionRepository(session);
    jointRepo = new JointRepository(session);
    componentRepo = new ComponentRepository(session);
    spoolRepo = new SpoolRepository(session);
    componentTypeRepo = new ComponentTypeRepository(session);
 }