Example #1
0
        public PolicyService(
            FsUnitOfWork db,
            DesignDomainService designDomainService,
            ReferenceProvider referencesProvider,
            IEntityIdProvider <Policy, Guid> keyBinder,
            IMessagePipe messagePipe = null,
            IProvideSpecifications <Policy> specProvider = null,
            EntityHandler <Policy, Guid> entityHandler   = null)
            : base(db, keyBinder, messagePipe, specProvider, entityHandler)
        {
            Guard.ArgumentNotNull(referencesProvider, nameof(referencesProvider));

            _referenceService    = referencesProvider;
            _fsDb                = db;
            _designDomainService = designDomainService;
        }
Example #2
0
        public DeviceModelService(
            FsUnitOfWork db,
            FSSecurityContext securityContext,
            ReferenceProvider referenceService,
            CapabilityProvider capabilityService,
            ProjectService projectService,
            StakeholderService stakeholdersService,
            SoftwareModelService softwareModelService,
            DesignDomainService domainService,
            ScenarioProvider scenarioProvider,
            IEntityIdProvider <DeviceModel, Guid> idProvider)
            : base(securityContext, referenceService, db, idProvider, softwareModelService?.MessagePipe)
        {
            Guard.ArgumentNotNull(softwareModelService, nameof(softwareModelService));

            _sfDb = db; // null reference checked by base class
            _softwareModelService = softwareModelService;
            _stakeholdersService  = stakeholdersService;
            _projectService       = projectService;
            _domainProvider       = domainService;
            _scenarioProvider     = scenarioProvider;
            _capabilityService    = capabilityService;
        }