Beispiel #1
0
 public InputShippingController(IInputShippingService service, IIdentityProvider identityProvider, IValidateService validateService)
 {
     _service          = service;
     _identityProvider = identityProvider;
     ValidateService   = validateService;
 }
 public SalesInvoiceController(IIdentityService identityService, IValidateService validateService, ISalesInvoiceContract salesInvoiceFacade, IMapper mapper, IServiceProvider serviceProvider) : base(identityService, validateService, salesInvoiceFacade, mapper, apiVersion)
 {
     _facade = salesInvoiceFacade;
 }
 public GamerManager(IValidateService validateService)
 {
     _validateService = validateService;
 }
Beispiel #4
0
 public ProductionOrderController(IIdentityService identityService, IValidateService validateService, IProductionOrder productionOrderFacade, IMapper mapper, IServiceProvider serviceProvider) : base(identityService, validateService, productionOrderFacade, mapper, apiVersion)
 {
     _facade = productionOrderFacade;
 }
        protected GarmentShippingLocalSalesDOController GetController(IGarmentShippingLocalSalesDOService service, IIdentityProvider identityProvider, IValidateService validateService)
        {
            var claimPrincipal = new Mock <ClaimsPrincipal>();
            var claims         = new Claim[]
            {
                new Claim("username", "unittestusername")
            };

            claimPrincipal.Setup(claim => claim.Claims).Returns(claims);

            var controller = new GarmentShippingLocalSalesDOController(service, identityProvider, validateService)
            {
                ControllerContext = new ControllerContext()
                {
                    HttpContext = new DefaultHttpContext()
                    {
                        User = claimPrincipal.Object
                    }
                }
            };

            controller.ControllerContext.HttpContext.Request.Headers["Authorization"]     = "Bearer unittesttoken";
            controller.ControllerContext.HttpContext.Request.Headers["x-timezone-offset"] = $"{It.IsAny<int>()}";
            controller.ControllerContext.HttpContext.Request.Path = new PathString("/v1/unit-test");

            return(controller);
        }
 public ProjectController(IServiceProvider serviceProvider)
 {
     projectService  = serviceProvider.GetService <IProjectService>();
     identityService = serviceProvider.GetService <IIdentityService>();
     validateService = serviceProvider.GetService <IValidateService>();
 }
 public GarmentInvoicePurchasingDispositionController(IIdentityService identityService, IValidateService validateService, IMapper mapper, IGarmentInvoicePurchasingDispositionService service)
 {
     IdentityService = identityService;
     ValidateService = validateService;
     Service         = service;
     Mapper          = mapper;
     ApiVersion      = "1.0.0";
 }
 public DailyOperationController(IIdentityService identityService, IValidateService validateService, IDailyOperationFacade facade, IMapper mapper) : base(identityService, validateService, facade, mapper, "1.0.0")
 {
     _StartDate = DateTime.Now;
     _EndDate   = DateTime.Now.AddDays(-1);
 }
 public GarmentCourierController(IIdentityService identityService, IValidateService validateService, IGarmentCourierService service, IMapper mapper) : base(identityService, validateService, service, mapper, "1.0.0")
 {
 }
 public GarmentPackingListDraftController(IGarmentPackingListDraftService service, IIdentityProvider identityProvider, IValidateService validateService)
 {
     _service          = service;
     _identityProvider = identityProvider;
     _validateService  = validateService;
 }
Beispiel #11
0
 public InputTransitController(IInputTransitService service, IIdentityProvider identityProvider, IValidateService validateService)
 {
     _service          = service;
     _identityProvider = identityProvider;
     ValidateService   = validateService;
 }
        public Mock <IServiceProvider> GetServiceProvider(IFabricPackingSKUService fabricPackingSKUService, IIdentityProvider identityProvider, IValidateService validateService)
        {
            var spMock = new Mock <IServiceProvider>();

            spMock.Setup(s => s.GetService(typeof(IFabricPackingSKUService)))
            .Returns(fabricPackingSKUService);

            spMock.Setup(s => s.GetService(typeof(IIdentityProvider)))
            .Returns(identityProvider);

            spMock.Setup(s => s.GetService(typeof(IValidateService)))
            .Returns(validateService);


            return(spMock);
        }
 public EfficienciesController(IIdentityService identityService, IValidateService validateService, IEfficiency facade, IMapper mapper, IServiceProvider serviceProvider) : base(identityService, validateService, facade, mapper, apiVersion)
 {
     Service = identityService;
     _facade = facade;
 }
 public SalesReceiptController(IIdentityService identityService, IValidateService validateService, ISalesReceiptService service, IMapper mapper) : base(identityService, validateService, service, mapper, "1.0.0")
 {
 }
 public FabricProductController(IServiceProvider serviceProvider)
 {
     _service          = serviceProvider.GetService <IFabricPackingSKUService>();
     _identityProvider = serviceProvider.GetService <IIdentityProvider>();
     _validateService  = serviceProvider.GetService <IValidateService>();
 }
Beispiel #16
0
 public DepositsManager(IDepositsRepository depositsRepository, IValidateService validateService, ILogger <DepositsManager> logger)
 {
     this.depositsRepository = depositsRepository;
     this.validateService    = validateService;
     this.logger             = logger;
 }
Beispiel #17
0
 public AccountsController(IIdentityService identityService, IValidateService validateService, IAccountService service, IMapper mapper) : base(identityService, validateService, service, mapper, "1.0.0")
 {
 }
Beispiel #18
0
 public ExpiredGarmentBookingOrderController(IIdentityService identityService, IValidateService validateService, IExpiredGarmentBookingOrder facade, IMapper mapper, IServiceProvider serviceProvider) : base(identityService, validateService, facade, mapper, apiVersion)
 {
     facades = facade;
     Service = identityService;
 }
 public MachineSpinningController(IIdentityService identityService, IValidateService validateService, IMachineSpinningService service, IMapper mapper) : base(identityService, validateService, service, mapper, "1.0.0")
 {
 }
Beispiel #20
0
 public OutputInspectionMaterialController(IOutputInspectionMaterialService service, IIdentityProvider identityProvider, IValidateService validateService)
 {
     _service          = service;
     _identityProvider = identityProvider;
     ValidateService   = validateService;
 }
 public GarmentFinanceDebtorCardReportController(IIdentityService identityService, IValidateService validateService, IGarmentFinanceDebtorCardReportService service, IMapper mapper)
 {
     IdentityService = identityService;
     ValidateService = validateService;
     Service         = service;
     ApiVersion      = "1.0.0";
     Mapper          = mapper;
 }
 public AssetController(IIdentityService identityService, IValidateService validateService, AuthDbContext dbContext)
 {
     _identityService = identityService;
     _validateService = validateService;
     _context         = dbContext;
 }
 public ValidateController(IValidateService validateService)
 {
     _validateService = validateService;
 }
Beispiel #24
0
 public GarmentLeftoverWarehouseStockController(IIdentityService identityService, IValidateService validateService, IGarmentLeftoverWarehouseStockService service)
 {
     IdentityService = identityService;
     ValidateService = validateService;
     Service         = service;
 }
 public GarmentPreSalesContractController(IIdentityService identityService, IValidateService validateService, IGarmentPreSalesContract facade, IMapper mapper, IServiceProvider serviceProvider) : base(identityService, validateService, facade, mapper, apiVersion)
 {
     HttpClientService = serviceProvider.GetService <IHttpClientService>();
 }
Beispiel #26
0
 public FpReturnFromBuyerController(IIdentityService identityService, IValidateService validateService, IFpReturnFromBuyerService service) : base(identityService, validateService, service, "1.0.0")
 {
 }
Beispiel #27
0
 public RemoteValidationController(IValidateService validateService)
 {
     _validateService = validateService;
 }
 public VBRequestDocumentController(IServiceProvider serviceProvider)
 {
     _identityService = serviceProvider.GetService <IIdentityService>();
     _service         = serviceProvider.GetService <IVBRequestDocumentService>();
     _validateService = serviceProvider.GetService <IValidateService>();
 }
 public GarmentShippingLocalPriceCorrectionNoteController(IGarmentShippingLocalPriceCorrectionNoteService service, IIdentityProvider identityProvider, IValidateService validateService)
 {
     _service          = service;
     _identityProvider = identityProvider;
     _validateService  = validateService;
 }
Beispiel #30
0
 public GarmentShippingLocalSalesDOController(IGarmentShippingLocalSalesDOService service, IIdentityProvider identityProvider, IValidateService validateService)
 {
     _service          = service;
     _identityProvider = identityProvider;
     _validateService  = validateService;
 }