コード例 #1
0
 public DashboardService(
     IEngagementRepository engagementRepository,
     IHostRepository hostRepository,
     IHostMapper hostMapper,
     IVulnerabilityRepository vulnerabilityRepository,
     IVulnerabilityMapper vulnerabilityMapper,
     IRiskRepository riskRepository,
     ICustomerRepository customerRepository,
     IGovernanceControlRepository governanceControlRepository,
     IPhaseRepository phaseRepository,
     IComplianceRepository complianceRepository,
     IComplianceSchemeRepository complianceSchemeRepository,
     IImportRepository importRepository,
     ICryptographyService cryptographyService,
     IEngagementService engagementService)
 {
     _engagementRepository        = engagementRepository;
     _customerRepository          = customerRepository;
     _hostRepository              = hostRepository;
     _hostMapper                  = hostMapper;
     _vulnerabilityRepository     = vulnerabilityRepository;
     _vulnerabilityMapper         = vulnerabilityMapper;
     _riskRepository              = riskRepository;
     _governanceControlRepository = governanceControlRepository;
     _phaseRepository             = phaseRepository;
     _complianceRepository        = complianceRepository;
     _complianceSchemeRepository  = complianceSchemeRepository;
     _importRepository            = importRepository;
     _cryptographyService         = cryptographyService;
     _engagementService           = engagementService;
 }
コード例 #2
0
 public IEnumerable <NonNull <EngagementGraph> > Engagements([Inject] IEngagementService service)
 {
     if (_dto?.Id != null)
     {
         var engagements = service.GetEngagementsByCustomerid(_dto.Id);
         foreach (var engagement in engagements)
         {
             yield return(new EngagementGraph(engagement));
         }
     }
 }
コード例 #3
0
 public TeamsController(IEngagementService engagementService)
 {
     _engagementService = engagementService;
 }
コード例 #4
0
 public UsersController(IUserService userService, IEngagementService engagementService)
 {
     _userService       = userService;
     _engagementService = engagementService;
 }
コード例 #5
0
 public ProjectsController(IEngagementService engagementService)
 {
     _engagementService = engagementService;
 }