public GenerateCodeMaterialCommandHandler(IMaterialService materialService, ICompanyRepository companyRepository, ICompanyQueries companyQueries)
        {
            this._materialService = materialService;

            this._companyRepository = companyRepository;
            this._companyQueries    = companyQueries;
        }
Ejemplo n.º 2
0
        public MaterialWindow()
        {
            InitializeComponent();

            _rUsersService = IoC.Container.Resolve <IUsersService>();

            _rMaterialService = IoC.Container.Resolve <IMaterialService>();

            _rCountryService = IoC.Container.Resolve <ICountryService>();

            materialsList.ItemsSource = _rMaterialService.GetMaterialViewModel();

            materialsList.SelectedIndex = 0;

            Countries = new ObservableCollection <BoolStringModel>();
            foreach (var countryName in _rCountryService.GetAllCountries().Select(c => c.Name))
            {
                Countries.Add(new BoolStringModel()
                {
                    IsSelected = false,
                    TheText    = countryName
                });
            }

            DataContext = this;
        }
Ejemplo n.º 3
0
        public MaterialIntegrationTest(DependencyResolverFixture fixture)
        {
            var serviceProvide = fixture.ServiceProvider;

            _materialService = serviceProvide.GetService <IMaterialService>();
            _mapper          = serviceProvide.GetService <IMapper>();
        }
Ejemplo n.º 4
0
 public OrderService(AppDbContext db, ILogger <OrderService> logger, IMaterialService materialService, IStockService stockService)
 {
     _db              = db;
     _logger          = logger;
     _materialService = materialService;
     _stockService    = stockService;
 }
Ejemplo n.º 5
0
 public GetSrvSetImp()
 {
     service       = XapServiceMgr.find <IMaterialService>();
     serviceQry    = XapServiceMgr.find <ICiOrdQryService>();
     serviceSet    = XapServiceMgr.find <IMedSrvSetItemDOCrudService>();
     medsrvService = XapServiceMgr.find <IMedsrvCrudService>();
 }
Ejemplo n.º 6
0
 public QualityPlansController(ICompanyService companyService, IFacilityService facilityService, IMaterialService materialService, IQualityPlanService qualityPlanService)
 {
     this.companyService     = companyService;
     this.facilityService    = facilityService;
     this.materialService    = materialService;
     this.qualityPlanService = qualityPlanService;
 }
Ejemplo n.º 7
0
        private void Setup(string approach)
        {
            DatabaseTesting.ResetDatabase();
            Context context = new Context();

            switch (approach)
            {
            case "Code":
                MaterialDa_Code  materialDa_Code  = new MaterialDa_Code();
                LibraryDa_Code   libraryDa_Code   = new LibraryDa_Code();
                LibrarianDa_Code librarianDaCode  = new LibrarianDa_Code();
                CopyDa_Code      copyDa_Code      = new CopyDa_Code();
                LoaningDa_Code   loaningDaCode    = new LoaningDa_Code();
                MaterialDm_Code  materialsDm_Code = new MaterialDm_Code(materialDa_Code, libraryDa_Code, librarianDaCode, copyDa_Code, loaningDaCode, context);
                _materialService = new MaterialService(materialsDm_Code);
                break;

            case "Database":
                MaterialsDa_Database materialDa_Db  = new MaterialsDa_Database(context);
                MaterialsDm_Database materialsDm_Db = new MaterialsDm_Database(materialDa_Db);
                _materialService = new MaterialService(materialsDm_Db);
                break;

            default:
                new NotImplementedException();
                break;
            }
        }
Ejemplo n.º 8
0
 public WechatMPApi(
     IMenuService menu,
     IOAuthService oauth,
     IUIService ui,
     IMessageService message,
     IMaterialService material,
     IBrocastMsgService brocastMsg,
     ITemplateMsgService templateMsg,
     ISubscriptionMsgService subscriptionMsg,
     IUserManagementService userManagement,
     IQrCodeService qrCode,
     IUrlService url,
     KFManagementService kfManagement
     )
 {
     Debugger.Break();
     Menu            = menu;
     OAuth           = oauth;
     JsUI            = ui;
     Message         = message;
     Material        = material;
     BrocastMsg      = brocastMsg;
     TemplateMsg     = templateMsg;
     SubscriptionMsg = subscriptionMsg;
     UserManagement  = userManagement;
     QrCode          = qrCode;
     Url             = url;
     KFManagement    = kfManagement;
 }
Ejemplo n.º 9
0
        public ProductExtensionController(IMaterialGroupService materialGroupService,
                                          IMaterialService materialService,
                                          IProductService productService,
                                          IManufacturerService manufacturerService,
                                          IPictureService pictureService,
                                          ILocalizationService localizationService,
                                          IPermissionService permissionService,
                                          IExportManager exportManager,
                                          ICustomerActivityService customerActivityService,
                                          IWorkContext workContext,
                                          IShippingService shippingService,
                                          IImportManager importManager,
                                          IStaticCacheManager cacheManager)
        {
            this._materialGroupService = materialGroupService;
            this._materialService      = materialService;

            this._productService          = productService;
            this._manufacturerService     = manufacturerService;
            this._pictureService          = pictureService;
            this._localizationService     = localizationService;
            this._permissionService       = permissionService;
            this._exportManager           = exportManager;
            this._customerActivityService = customerActivityService;
            this._workContext             = workContext;
            this._importManager           = importManager;
            this._cacheManager            = cacheManager;
            this._shippingService         = shippingService;
        }
Ejemplo n.º 10
0
        public void SetUp()
        {
            _mockRepository = new MockRepository();
            _materialRepository = _mockRepository.DynamicMock<IRepository<Material>>();

            _materialService = new MaterialService(_materialRepository);
        }
Ejemplo n.º 11
0
        public UserInterface(IRegistrationService registrationService,
                             IAuthorisationService authorizationService,

                             IMaterialInputService materialInputService,
                             ICourseInputService courseInputService,
                             ISkillInputService skillInputService,
                             IUserInfoInputService userInfoInputService,

                             IMaterialService materialService,
                             ICourseService courseService,
                             ISkillService skillService,

                             EducationPortalContext context,
                             Session session)
        {
            this.registrationService  = registrationService;
            this.authorizationService = authorizationService;

            this.materialService = materialService;
            this.courseService   = courseService;
            this.skillService    = skillService;

            this.materialInputService = materialInputService;
            this.courseInputService   = courseInputService;
            this.skillInputService    = skillInputService;
            this.userInfoInputService = userInfoInputService;

            this.context = context;
            this.session = session;
        }
Ejemplo n.º 12
0
        public TableController(ILogger log, ICommandSender commandSender,
                               ITableService materialGroupService,
                               IMaterialService materialService,
                               ICategoryService categoryService,
                               IManufacturerService manufacturerService,
                               IPictureService pictureService,
                               ILocalizationService localizationService,
                               IPermissionService permissionService,
                               IExportManager exportManager,
                               ICustomerActivityService customerActivityService,
                               IWorkContext workContext,
                               IShippingService shippingService,
                               IImportManager importManager,
                               IStaticCacheManager cacheManager)
        {
            this._log                  = log;
            this._commandSender        = commandSender;
            this._materialGroupService = materialGroupService;
            this._materialService      = materialService;

            this._categoryService         = categoryService;
            this._manufacturerService     = manufacturerService;
            this._pictureService          = pictureService;
            this._localizationService     = localizationService;
            this._permissionService       = permissionService;
            this._exportManager           = exportManager;
            this._customerActivityService = customerActivityService;
            this._workContext             = workContext;
            this._importManager           = importManager;
            this._cacheManager            = cacheManager;
            this._shippingService         = shippingService;
        }
Ejemplo n.º 13
0
 public MaterialController(ILogger <MaterialController> logger, IRepositoryWrapper repositoryWrapper, IMapper mapper, IMaterialService service)
 {
     _logger     = logger;
     _repository = repositoryWrapper;
     _mapper     = mapper;
     _service    = service;
 }
Ejemplo n.º 14
0
 public AdminController(
     ISensorService sensorService,
     IMaterialService materialService)
 {
     this.sensorService   = sensorService;
     this.materialService = materialService;
 }
Ejemplo n.º 15
0
 public PublisherController(IProductService productService, IBlogService blogService,
                            IWebsiteAttributeService websiteAttributeService, IBlogCategoryService blogCategoryService,
                            IStaffService staffService, IProductAttributeMappingService productAttributeMappingService,
                            IProductRelationshipService productRelationshipService, IProductScheduleService productScheduleService,
                            IOrderService orderService, IOrderItemService orderItemService,
                            IOrderAttributeService orderAttributeService, IOrderAttributeMappingService orderAttributeMappingService,
                            IAdService adService, IAdMaterialMappingService adMaterialService, IMaterialService materialService, IDomainService domainService, ICodeService codeService)
 {
     this._productService                 = productService;
     this._blogService                    = blogService;
     this._websiteAttributeService        = websiteAttributeService;
     this._blogCategoryService            = blogCategoryService;
     this._staffService                   = staffService;
     this._productAttributeMappingService = productAttributeMappingService;
     this._productRelationshipService     = productRelationshipService;
     this._productScheduleService         = productScheduleService;
     this._orderService                   = orderService;
     this._orderAttributeService          = orderAttributeService;
     this._orderAttributeMappingService   = orderAttributeMappingService;
     this._adService = adService;
     this._adMaterialMappingService = adMaterialService;
     this._materialService          = materialService;
     this._domainService            = domainService;
     this._codeService = codeService;
 }
Ejemplo n.º 16
0
 public MaterialController(IMaterialService materialService,
                           IMaterialGroupService materialGroupService,
                           ISupplierService supplierService,
                           IWorkContext workContext,
                           ILocalizationService localizationService,
                           IPictureService pictureService,
                           //ICopyMaterialService copyMaterialService,
                           IPdfService pdfService,
                           IExportManager exportManager,
                           IImportManager importManager,
                           ICustomerActivityService customerActivityService,
                           IPermissionService permissionService,
                           IShippingService shippingService,
                           IStaticCacheManager cacheManager,
                           IDateTimeHelper dateTimeHelper)
 {
     this._materialService      = materialService;
     this._materialGroupService = materialGroupService;
     this._supplierService      = supplierService;
     this._workContext          = workContext;
     this._localizationService  = localizationService;
     this._pictureService       = pictureService;
     //this._copyMaterialService = copyMaterialService;
     this._pdfService              = pdfService;
     this._exportManager           = exportManager;
     this._importManager           = importManager;
     this._customerActivityService = customerActivityService;
     this._permissionService       = permissionService;
     this._shippingService         = shippingService;
     this._cacheManager            = cacheManager;
     this._dateTimeHelper          = dateTimeHelper;
 }
Ejemplo n.º 17
0
        public PurchaseOrderService(IMaterialService materialService)
        {
            _manageClient = new ManagePurchaseOrderInClient("binding_SOAP12");
            _manageClient.ClientCredentials.UserName.UserName = SapUser;
            _manageClient.ClientCredentials.UserName.Password = SapPass;

            _materialService = materialService;
        }
Ejemplo n.º 18
0
 public ConfiguredProductController(IUserValidationService userValidationService, IConfiguredProductService configuredProductService, ILogger <ICategoryService> logger, IProductService productService, IMaterialService materialService)
 {
     _configuredProductService = configuredProductService;
     _productService           = productService;
     _materialService          = materialService;
     _logger = new CustomLogger(logger);
     _userValidationService = userValidationService;
 }
Ejemplo n.º 19
0
 public CourseController(ICourseService courseService,
                         IMaterialService materialService,
                         IUserService userService)
 {
     this.courseService   = courseService;
     this.materialService = materialService;
     this.userService     = userService;
 }
 public MaterialController(IMaterialService materialService, ILogger <ICategoryService> logger,
                           IProductService productService, IUserValidationService userValidationService)
 {
     _materialService       = materialService;
     _productService        = productService;
     _userValidationService = userValidationService;
     _logger = new CustomLogger(logger);
 }
 public MaterialController(ILogger <MaterialController> logger, IMaterialService materialService, IVideoMaterialService videoMaterialService, IBookMaterialService bookMaterialService, IArticleMaterialService articleMaterialService, IMapper mapper)
 {
     this.logger                 = logger;
     this.mapper                 = mapper;
     this.materialService        = materialService;
     this.bookMaterialService    = bookMaterialService;
     this.videoMaterialService   = videoMaterialService;
     this.articleMaterialService = articleMaterialService;
 }
Ejemplo n.º 22
0
 public MaterialInputsController(IMaterialInputService materialInputService, IOrderTypeService orderTypeService, IOrderService orderService, IMaterialService materialService, ISupplierService supplierService, IStockLocationService stockLocationService)
 {
     this.materialInputService = materialInputService;
     this.orderTypeService     = orderTypeService;
     this.orderService         = orderService;
     this.materialService      = materialService;
     this.supplierService      = supplierService;
     this.stockLocationService = stockLocationService;
 }
Ejemplo n.º 23
0
 /*Section="Constructor"*/
 public MaterialInfoController(
     ILoggerFactory loggerFactory,
     IMaterialInfoService materialInfoService,
     IMaterialService materialService
     )
     : base(loggerFactory, materialInfoService)
 {
     _materialService = materialService;
 }
 public MaterialInputService(IMaterialService materialService,
                             Session session,
                             ISkillService skillService,
                             ISkillInputService skillInputService)
 {
     this.materialService   = materialService;
     this.session           = session;
     this.skillService      = skillService;
     this.skillInputService = skillInputService;
 }
 public ChangeQualityPlansController(IChangeQualityPlanService changeQualityPlanService, IUnitService unitService, ICertificateService certificateService, ICriterionService criterionService, IMaterialService materialService, IQualityPlanService qualityPlanService, IProductionEquipmentService productionEquipmentService)
 {
     this.changeQualityPlanService = changeQualityPlanService;
     this.qualityPlanService       = qualityPlanService;
     this.criterionService         = criterionService;
     this.certificateService       = certificateService;
     this.unitService                = unitService;
     this.materialService            = materialService;
     this.productionEquipmentService = productionEquipmentService;
 }
Ejemplo n.º 26
0
 public CourseService(IRepository <Course> repository,
                      Session session,
                      IUserService userService,
                      IMaterialService materialService)
 {
     this.repository      = repository;
     this.session         = session;
     this.userService     = userService;
     this.materialService = materialService;
 }
Ejemplo n.º 27
0
 public MaterialController(IMaterialService MaterialService, IMapperProvider mapper, IUserService userService)
     : base(userService)
 {
     if (MaterialService == null)
     {
         throw new ArgumentNullException("MaterialService");
     }
     _MaterialService = MaterialService;
     _mapper          = mapper;
 }
 public ResidenceEditViewModel(IResidenceService residenceService, IMessageService messageService,
                               IDistrictService districtService, IViewsService viewsService, IRealtorService realtorService,
                               IOwnershipService ownershipService, IDealVariantService dealVariantService,
                               IMaterialService materialService, IConditionService conditionalService, IDestinationService destinationService)
     : base(residenceService, messageService, districtService, realtorService, ownershipService, dealVariantService, conditionalService)
 {
     _ViewsService       = viewsService;
     _MaterialService    = materialService;
     _DestinationService = destinationService;
 }
 public CourseController(ILogger <CourseController> logger, ICourseService courseService, IMaterialService materialService, ISkillService skillService, ICourseTestService courseTestService, IUserService userService, IMapper mapper)
 {
     this.logger            = logger;
     this.courseService     = courseService;
     this.mapper            = mapper;
     this.materialService   = materialService;
     this.skillService      = skillService;
     this.courseTestService = courseTestService;
     this.userService       = userService;
 }
 public CoursePassController(ILogger <CoursePassController> logger, ICourseService courseService, IUserService userService, IMaterialService materialService, ICourseTestService courseTestService, IQuestionService questionService, IMapper mapper)
 {
     this.logger            = logger;
     this.courseService     = courseService;
     this.userService       = userService;
     this.mapper            = mapper;
     this.materialService   = materialService;
     this.courseTestService = courseTestService;
     this.questionService   = questionService;
 }
Ejemplo n.º 31
0
 public SalesOrderService(IProductSpecService productSpecService, IMaterialService materialService)
 {
     _productSpecService = productSpecService;
     _queryClient        = new QuerySalesOrderInClient("binding_SOAP12");
     _manageClient       = new ManageSalesOrderInClient("binding_SOAP12");
     _queryClient.ClientCredentials.UserName.UserName  = SapUser;
     _queryClient.ClientCredentials.UserName.Password  = SapPass;
     _manageClient.ClientCredentials.UserName.UserName = SapUser;
     _manageClient.ClientCredentials.UserName.Password = SapPass;
     _materialService = materialService;
 }
Ejemplo n.º 32
0
 public ThingController(
     IThingService thingService,
     ITagService tagService,
     IMaterialService materialService,
     IFormatService formatService,
     IStateService stateService,
     IUserService userService)
 {
     _thingService = thingService;
     _tagService = tagService;
     _materialService = materialService;
     _formatService = formatService;
     _stateService = stateService;
     _userService = userService;
 }
        public void SetUp()
        {
            _mockRepository = new MockRepository();
            _materialService = _mockRepository.DynamicMock<IMaterialService>();

            _materialController = new MaterialController(_materialService);
            Mapper.CreateMap<Material, MaterialModel>();
            Mapper.CreateMap<MaterialModel, Material>();
        }
Ejemplo n.º 34
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="materialService">Injecting materialService.</param>
 /// <param name="logger">Injecting logger.</param>
 public MaterialController(IMaterialService materialService, ILogger<MaterialController> logger)
 {
     _materialService = materialService;
     _logger = logger;
 }
Ejemplo n.º 35
0
 public MaterialController(IMaterialService materialService)
 {
     _materialService = materialService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MaterialRecordUpdater"/> class.
 /// </summary>
 /// <param name="materialService">The material service.</param>
 public MaterialRecordUpdater(IMaterialService materialService)
 {
     this.materialService = materialService;
 }
Ejemplo n.º 37
0
        public void SetUp()
        {
            _mockRepository = new MockRepository();
            _thingService = _mockRepository.DynamicMock<IThingService>();
            _tagService = _mockRepository.DynamicMock<ITagService>();
            _materialService = _mockRepository.DynamicMock<IMaterialService>();
            _formatService = _mockRepository.DynamicMock<IFormatService>();
            _stateService = _mockRepository.DynamicMock<IStateService>();
            _userService = _mockRepository.DynamicMock<IUserService>();

            _thingController = new ThingController(
                _thingService,
                _tagService,
                _materialService,
                _formatService,
                _stateService,
                _userService);

            Mapper.CreateMap<Thing, ThingModel>();
            Mapper.CreateMap<ThingModel, Thing>();
        }