Exemplo n.º 1
0
 public SpecificationService(
     ISpecificationRepo specificationRepo,
     IMarkRepo markRepo)
 {
     _repository = specificationRepo;
     _markRepo   = markRepo;
 }
Exemplo n.º 2
0
 public AttachedDocService(
     IAttachedDocRepo attachedDocRepo,
     IMarkRepo markRepo)
 {
     _repository = attachedDocRepo;
     _markRepo   = markRepo;
 }
Exemplo n.º 3
0
 public BoltDocumentService(
     IMarkRepo markRepo,
     IBoltLengthRepo boltLengthRepo,
     IConstructionBoltRepo constructionBoltRepo)
 {
     _markRepo             = markRepo;
     _boltLengthRepo       = boltLengthRepo;
     _constructionBoltRepo = constructionBoltRepo;
 }
Exemplo n.º 4
0
 public StandardConstructionService(
     IStandardConstructionRepo standardConstructionRepo,
     IMarkRepo markRepo,
     ISpecificationRepo specificationRepo)
 {
     _repository        = standardConstructionRepo;
     _markRepo          = markRepo;
     _specificationRepo = specificationRepo;
 }
Exemplo n.º 5
0
 public MarkLinkedDocService(
     IMarkLinkedDocRepo markLinkedDocRepo,
     IMarkRepo markRepo,
     ILinkedDocRepo linkedDocRepo)
 {
     _repository    = markLinkedDocRepo;
     _markRepo      = markRepo;
     _linkedDocRepo = linkedDocRepo;
 }
Exemplo n.º 6
0
 public MarkApprovalService(
     IMarkApprovalRepo markApprovalRepo,
     IMarkRepo markRepo,
     IEmployeeRepo employeeRepo)
 {
     _repository   = markApprovalRepo;
     _markRepo     = markRepo;
     _employeeRepo = employeeRepo;
 }
Exemplo n.º 7
0
 public EstimateTaskService(
     IEstimateTaskRepo estimateTaskRepo,
     IMarkRepo markRepo,
     IEmployeeRepo employeeRepo)
 {
     _repository   = estimateTaskRepo;
     _markRepo     = markRepo;
     _employeeRepo = employeeRepo;
 }
Exemplo n.º 8
0
 public EstimationPagesDocumentService(
     IMarkRepo markRepo,
     IEmployeeRepo employeeRepo,
     IOptions <AppSettings> appSettings)
 {
     _markRepo     = markRepo;
     _employeeRepo = employeeRepo;
     _appSettings  = appSettings.Value;
 }
Exemplo n.º 9
0
 public ConstructionBoltService(
     IConstructionBoltRepo constructionBoltRepo,
     IMarkRepo markRepo,
     IConstructionRepo constructionRepo,
     IBoltDiameterRepo boltDiameterRepo)
 {
     _repository       = constructionBoltRepo;
     _markRepo         = markRepo;
     _constructionRepo = constructionRepo;
     _boltDiameterRepo = boltDiameterRepo;
 }
Exemplo n.º 10
0
 public MarkGeneralDataPointService(
     IMarkGeneralDataPointRepo markGeneralDataPointRepo,
     IMarkRepo markRepo,
     IGeneralDataSectionRepo generalDataSectionRepo,
     IGeneralDataPointRepo generalDataPointRepo)
 {
     _repository             = markGeneralDataPointRepo;
     _markRepo               = markRepo;
     _generalDataSectionRepo = generalDataSectionRepo;
     _generalDataPointRepo   = generalDataPointRepo;
 }
Exemplo n.º 11
0
 public DocService(
     IDocRepo docRepo,
     IMarkRepo markRepo,
     IEmployeeRepo employeeRepo,
     IDocTypeRepo docTypeRepo)
 {
     _repository   = docRepo;
     _markRepo     = markRepo;
     _employeeRepo = employeeRepo;
     _docTypeRepo  = docTypeRepo;
 }
Exemplo n.º 12
0
 public AdditionalWorkService(
     IAdditionalWorkRepo additionalWorkRepo,
     IMarkRepo markRepo,
     IEmployeeRepo employeeRepo,
     IDocRepo docRepo)
 {
     _repository   = additionalWorkRepo;
     _markRepo     = markRepo;
     _employeeRepo = employeeRepo;
     _docRepo      = docRepo;
 }
Exemplo n.º 13
0
 public ConstructionElementService(
     IConstructionElementRepo constructionElementRepo,
     IMarkRepo markRepo,
     IConstructionRepo constructionRepo,
     IProfileRepo profileRepo,
     ISteelRepo steelRepo)
 {
     _repository       = constructionElementRepo;
     _markRepo         = markRepo;
     _constructionRepo = constructionRepo;
     _profileRepo      = profileRepo;
     _steelRepo        = steelRepo;
 }
Exemplo n.º 14
0
        public MarkService(
            IMarkRepo markRepo,
            ISubnodeRepo subnodeRepo,
            IDepartmentRepo departmentRepo,
            IEmployeeRepo employeeRepo,
            ISpecificationService specificationService)
        {
            _repository     = markRepo;
            _subnodeRepo    = subnodeRepo;
            _departmentRepo = departmentRepo;
            _employeeRepo   = employeeRepo;

            _specificationService = specificationService;
        }
Exemplo n.º 15
0
        public void DeletetMark_ShouldReturnOk()
        {
            //Arrange
            testSchoolRegisterContext = new TestSchoolRegisterContext();
            markRepo        = new MockMarkRepo(testSchoolRegisterContext);
            marksController = new MarksController(markRepo);
            PopulateMarkFields();

            //Act
            var actionResult = marksController.DeleteMark(1);

            // Assert
            Assert.IsNotNull(actionResult);
        }
Exemplo n.º 16
0
 public ConstructionService(
     IConstructionRepo constructionRepo,
     IMarkRepo markRepo,
     ISpecificationRepo specificationRepo,
     IConstructionTypeRepo constructionTypeRepo,
     IConstructionSubtypeRepo constructionSubtypeRepo,
     IWeldingControlRepo weldingControlRepo)
 {
     _repository              = constructionRepo;
     _markRepo                = markRepo;
     _specificationRepo       = specificationRepo;
     _constructionTypeRepo    = constructionTypeRepo;
     _constructionSubtypeRepo = constructionSubtypeRepo;
     _weldingControlRepo      = weldingControlRepo;
 }
 public ConstructionDocumentService(
     IMarkRepo markRepo,
     IEmployeeRepo employeeRepo,
     IConstructionRepo constructionRepo,
     IStandardConstructionRepo standardConstructionRepo,
     IConstructionElementRepo constructionElementRepo,
     IOptions <AppSettings> appSettings)
 {
     _markRepo                 = markRepo;
     _employeeRepo             = employeeRepo;
     _constructionRepo         = constructionRepo;
     _standardConstructionRepo = standardConstructionRepo;
     _constructionElementRepo  = constructionElementRepo;
     _appSettings              = appSettings.Value;
 }
Exemplo n.º 18
0
 public ProjectRegistrationDocumentService(
     IMarkRepo markRepo,
     IAttachedDocRepo attachedDocRepo,
     IConstructionRepo constructionRepo,
     IStandardConstructionRepo standardConstructionRepo,
     IConstructionElementRepo constructionElementRepo,
     IDocService docService,
     IAdditionalWorkService additionalWorkService)
 {
     _markRepo                 = markRepo;
     _attachedDocRepo          = attachedDocRepo;
     _constructionRepo         = constructionRepo;
     _standardConstructionRepo = standardConstructionRepo;
     _constructionElementRepo  = constructionElementRepo;
     _docService               = docService;
     _additionalWorkService    = additionalWorkService;
 }
Exemplo n.º 19
0
 public MarkService(
     IMarkRepo markRepo,
     ISubnodeRepo subnodeRepo,
     IDepartmentRepo departmentRepo,
     IEmployeeRepo employeeRepo,
     IEstimateTaskRepo estimateTaskRepo,
     ISpecificationService specificationService,
     IMarkGeneralDataPointService markGeneralDataPointService)
 {
     _repository                  = markRepo;
     _subnodeRepo                 = subnodeRepo;
     _departmentRepo              = departmentRepo;
     _employeeRepo                = employeeRepo;
     _estimateTaskRepo            = estimateTaskRepo;
     _specificationService        = specificationService;
     _markGeneralDataPointService = markGeneralDataPointService;
 }
Exemplo n.º 20
0
 public DocumentService(
     IMarkGeneralDataPointRepo markGeneralDataPointRepo,
     IMarkRepo markRepo,
     IMarkApprovalRepo markApprovalRepo,
     IEmployeeRepo employeeRepo,
     IDocRepo docRepo,
     IMarkLinkedDocRepo markLinkedDocRepo,
     IAttachedDocRepo attachedDocRepo)
 {
     _markGeneralDataPointRepo = markGeneralDataPointRepo;
     _markRepo          = markRepo;
     _markApprovalRepo  = markApprovalRepo;
     _employeeRepo      = employeeRepo;
     _docRepo           = docRepo;
     _markLinkedDocRepo = markLinkedDocRepo;
     _attachedDocRepo   = attachedDocRepo;
 }
Exemplo n.º 21
0
        public void GetMark_ShouldReturnOk()
        {
            //Arrange
            testSchoolRegisterContext = new TestSchoolRegisterContext();
            markRepo        = new MockMarkRepo(testSchoolRegisterContext);
            marksController = new MarksController(markRepo);
            PopulateMarkFields();

            //Act
            var actionResult  = marksController.Get(1);
            var contentResult = actionResult as OkNegotiatedContentResult <MarkDto>;

            // Assert
            Assert.IsNotNull(contentResult);
            Assert.IsNotNull(contentResult.Content);
            Assert.AreEqual(1, contentResult.Content.Id);
        }
Exemplo n.º 22
0
 public MarkOperatingConditionsService(
     IMarkOperatingConditionsRepo markOperatingConditionsRepo,
     IMarkRepo markRepo,
     IOperatingAreaRepo operatingAreaRepo,
     IGasGroupRepo gasGroupRepo,
     IEnvAggressivenessRepo envAggressivenessRepo,
     IConstructionMaterialRepo constructionMaterialRepo,
     IPaintworkTypeRepo paintworkTypeRepo,
     IHighTensileBoltsTypeRepo highTensileBoltsTypeRepo)
 {
     _repository               = markOperatingConditionsRepo;
     _markRepo                 = markRepo;
     _operatingAreaRepo        = operatingAreaRepo;
     _gasGroupRepo             = gasGroupRepo;
     _envAggressivenessRepo    = envAggressivenessRepo;
     _constructionMaterialRepo = constructionMaterialRepo;
     _paintworkTypeRepo        = paintworkTypeRepo;
     _highTensileBoltsTypeRepo = highTensileBoltsTypeRepo;
 }
 public GeneralDataDocumentService(
     IMarkRepo markRepo,
     IMarkApprovalRepo markApprovalRepo,
     IEmployeeRepo employeeRepo,
     IDocRepo docRepo,
     IMarkGeneralDataPointRepo markGeneralDataPointRepo,
     IMarkLinkedDocRepo markLinkedDocRepo,
     IAttachedDocRepo attachedDocRepo,
     IMarkOperatingConditionsRepo markOperatingConditionsRepo,
     IOptions <AppSettings> appSettings)
 {
     _markRepo                    = markRepo;
     _markApprovalRepo            = markApprovalRepo;
     _employeeRepo                = employeeRepo;
     _docRepo                     = docRepo;
     _markGeneralDataPointRepo    = markGeneralDataPointRepo;
     _markLinkedDocRepo           = markLinkedDocRepo;
     _attachedDocRepo             = attachedDocRepo;
     _markOperatingConditionsRepo = markOperatingConditionsRepo;
     _appSettings                 = appSettings.Value;
 }
 public EstimateTaskDocumentService(
     IMarkRepo markRepo,
     IEmployeeRepo employeeRepo,
     IConstructionRepo constructionRepo,
     IConstructionElementRepo constructionElementRepo,
     IStandardConstructionRepo standardConstructionRepo,
     IMarkOperatingConditionsRepo markOperatingConditionsRepo,
     IEstimateTaskRepo estimateTaskRepo,
     IMarkGeneralDataPointRepo markGeneralDataPointRepo,
     IOptions <AppSettings> appSettings)
 {
     _markRepo                    = markRepo;
     _employeeRepo                = employeeRepo;
     _constructionRepo            = constructionRepo;
     _constructionElementRepo     = constructionElementRepo;
     _standardConstructionRepo    = standardConstructionRepo;
     _markOperatingConditionsRepo = markOperatingConditionsRepo;
     _estimateTaskRepo            = estimateTaskRepo;
     _markGeneralDataPointRepo    = markGeneralDataPointRepo;
     _appSettings                 = appSettings.Value;
 }
Exemplo n.º 25
0
 public TeachersController(ITeacherRepo repo, IAttendanceRepo attendanceRepo, IMarkRepo markRepo)
 {
     _repo           = repo;
     _attendanceRepo = attendanceRepo;
     _markRepo       = markRepo;
 }
 public EstimationTitleDocumentService(
     IMarkRepo markRepo)
 {
     _markRepo = markRepo;
 }
Exemplo n.º 27
0
 public MarksController(IMarkRepo repo)
 {
     _repo = repo;
 }