Example #1
0
 public ReportController(IContractService contractService,
                         ICustomerService customerService,
                         IUnitService unitService,
                         IProcuringAgencyService procuringAgencyService,
                         IConstructionModelFactory constructionModelFactory,
                         IReportService reportService,
                         IExportManager exportManager,
                         IConstructionService constructionService,
                         IPermissionService permissionService,
                         IContractFormService contractFormService,
                         IContractTypeService contractTypeService,
                         IConstructionTypeService constructionTypeService
                         )
 {
     this._customerService          = customerService;
     this._constructionTypeService  = constructionTypeService;
     this._contractTypeService      = contractTypeService;
     this._procuringAgencyService   = procuringAgencyService;
     this._unitService              = unitService;
     this._exportManager            = exportManager;
     this._contractService          = contractService;
     this._permissionService        = permissionService;
     this._reportService            = reportService;
     this._constructionModelFactory = constructionModelFactory;
     this._constructionService      = constructionService;
     this._contractFormService      = contractFormService;
 }
        public ConstructionTypeServiceTest()
        {
            // Arrange
            var repository = new Mock <IConstructionTypeRepo>();

            repository.Setup(mock =>
                             mock.GetAll()).Returns(TestData.constructionTypes);

            _service = new ConstructionTypeService(repository.Object);
        }
 public ConstructionTypeController(ICustomerActivityService customerActivityService,
                                   ILocalizationService localizationService,
                                   ILocalizedEntityService localizedEntityService,
                                   IPermissionService permissionService,
                                   ISettingService settingService,
                                   IConstructionModelFactory constructionModelFactory,
                                   IConstructionTypeService constructionTypeService)
 {
     this._constructionModelFactory = constructionModelFactory;
     this._customerActivityService  = customerActivityService;
     this._localizationService      = localizationService;
     this._localizedEntityService   = localizedEntityService;
     this._permissionService        = permissionService;
     this._constructionTypeService  = constructionTypeService;
 }
 public ConstructionModelFactory(IConstructionTypeService constructionTypeService,
                                 ICountryService countryService,
                                 ILocalizationService localizationService,
                                 IStateProvinceService stateProvinceService,
                                 IStaticCacheManager cacheManager,
                                 IWorkContext workContext,
                                 IConstructionCapitalService constructionCapitalService,
                                 IConstructionService constructionService)
 {
     this._constructionTypeService    = constructionTypeService;
     this._constructionCapitalService = constructionCapitalService;
     this._constructionService        = constructionService;
     this._countryService             = countryService;
     this._localizationService        = localizationService;
     this._stateProvinceService       = stateProvinceService;
     this._cacheManager = cacheManager;
     this._workContext  = workContext;
 }
Example #5
0
 public ConstructionTypesController(
     IConstructionTypeService constructionTypeService)
 {
     _service = constructionTypeService;
 }