public ProjectsInformationController(IProjectInformationService projectInformationService,
                                      IUnitOfWork unitOfWork)
 {
     _projectInformationService = projectInformationService ??
                                  throw new ArgumentNullException(nameof(projectInformationService));
     _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
 }
Beispiel #2
0
        public Analyzer(string[] args)
        {
            _configurationHelper = new ConfigurationHelper();

            _configurationHelper.ValidateConfiguration();
            _configurationHelper.SetConfigurationFromArgs(args);

            _auditService = new AuditService(_configurationHelper);
            _projectInformationService = new ProjectInformationService();
        }
 public void Setup()
 {
     _repository = Substitute.For <IProjectInformationRepository>();
     _service    = new ProjectInformationService(_repository);
 }
Beispiel #4
0
 public void Setup()
 {
     _service    = Substitute.For <IProjectInformationService>();
     _unitOfWork = Substitute.For <IUnitOfWork>();
     _controller = new ProjectsInformationController(_service, _unitOfWork);
 }
 public ProjectOrderController(IProjectOrderService projectOriderService,
                               IProjectInformationService projectInformationService) : base(projectOriderService)
 {
     this.projectOriderService      = projectOriderService;
     this.projectInformationService = projectInformationService;
 }
Beispiel #6
0
 public ProjectInformationController(IProjectInformationService projectInformationService,
                                     IHostingEnvironment appEnvironment) : base(projectInformationService)
 {
     this.projectInformationService = projectInformationService;
     this.appEnvironment            = appEnvironment;
 }
 public ProjectDailyReportController(IProjectDailyReportService projectDailyReportService,
                                     IProjectInformationService projectInformationService) : base(projectDailyReportService)
 {
     this.projectDailyReportService = projectDailyReportService;
     this.projectInformationService = projectInformationService;
 }
 public ProjectCertificationController(IProjectCertificationService projectCertificationService,
                                       IProjectInformationService projectInformationService) : base(projectCertificationService)
 {
     this.projectCertificationService = projectCertificationService;
     this.projectInformationService   = projectInformationService;
 }