public VehicleController(ICustomerService customerService, IDistributorService distributorService, IDealerService dealerService, IVehicleService<Vehicle> vehicleService) { this._customerService = customerService; this._distributorService = distributorService; this._dealerService = dealerService; this._vehicleService = vehicleService; }
public ReturnRequestController(IReturnRequestService returnRequestService, IProductService productService, IStorageService storageService, IDistributorService distributorService) { this._returnRequestService = returnRequestService; _productService = productService; _storageService = storageService; _distributorService = distributorService; }
public VehicleController(ICustomerService customerService, IDistributorService distributorService, IDealerService dealerService, IVehicleService <Vehicle> vehicleService) { this._customerService = customerService; this._distributorService = distributorService; this._dealerService = dealerService; this._vehicleService = vehicleService; }
public SecurityHelper(IMembershipService membershipService, IShopService shopService, IAccountService accountService, IDistributorService distributorService) { _membershipService = membershipService; _shopService = shopService; _accountService = accountService; _distributorService = distributorService; }
public ReportController(IOrderService _orderService, IOrderDetailService _detailService, IEmployeeService _employeeService, IDistributorService _distributorService) { this.orderService = _orderService; this.detailService = _detailService; this.employeeService = _employeeService; this.distributorService = _distributorService; }
public SalesReportController(ISalesReportService orderService, IOrderService oService, IBillService bService, IDistributorService distributorService) { this._orderService = orderService; this._oService = oService; this._billService = bService; this._distributorService = distributorService; }
/// <summary> /// GetPayableCharges /// </summary> /// <remarks> /// Get your payable charges data for a specific billing period. There are /// three types of charges that are included in the data returned: recurring, /// usage, and setup. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='date'> /// Specify a date within the desired billing period. Format: yyyy-MM-dd (UTC). /// Default: Today. For example, if the date is March 17th and your billing /// period is from the 1st to the 31st of the month, it will return data from /// March 1st to March 31st. /// </param> /// <param name='acceptLanguage'> /// Specify language (and culture) following [RFC 7231, section 5.3.5: /// Accept-Language]. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PayableCharges> GetPayableChargesAsync(this IDistributorService operations, System.DateTime?date = default(System.DateTime?), string acceptLanguage = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetPayableChargesWithHttpMessagesAsync(date, acceptLanguage, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public SalesController() { var dbfactory = new DatabaseFactory(); var unitOfWork = new UnitOfWork(dbfactory); _salesOrderService = new SalesOrderService(new SalesOrderRepository(dbfactory), new SalesOrderDetailRepository(dbfactory), new SalesOrderApprovalRepository(dbfactory), new NotificationRepository(dbfactory), new NotificationDetailRepository(dbfactory), unitOfWork); _approvalController = new ApprovalController<SlsSalesOrderApproval, SlsSalesOrderViewModel>(_salesOrderService); _deliveryService = new DeliveryService(new DeliveryRepository(dbfactory), new DeliveryDetailRepository(dbfactory), unitOfWork); _SecCompanyService = new SecCompanyService(new SecCompanyRepository(dbfactory), unitOfWork); _hrmEmployeeService = new HrmEmployeeService(new HrmEmployeeRepository(dbfactory), unitOfWork); _officeService = new OfficeService(new OfficeRepository(dbfactory), unitOfWork); _DistributorService = new DistributorService(new DistributorRepository(dbfactory), unitOfWork); _DealerService = new DealerService(new DealerRepository(dbfactory), unitOfWork); _CorporateClientService = new CorporateClientService(new CorporateClientRepository(dbfactory), unitOfWork); _RetailerService = new RetailerService(new RetailerRepository(dbfactory), unitOfWork); _FreeProductService = new FreeProductService(new FreeProductRepository(dbfactory), new ChartOfProductRepository(dbfactory), new UnitOfMeasurementRepository(dbfactory), unitOfWork); _ProductService = new ChartOfProductService(new ChartOfProductRepository(dbfactory), unitOfWork); _UnitService = new UnitOfMeasurementService(new UnitOfMeasurementRepository(dbfactory), unitOfWork); _salesDiscountSettingService = new SalesDiscountSettingService(new SalesDiscountSettingRepository(dbfactory), unitOfWork); _PartyCreditService = new PartyCreditReportService(new InvStoreOpeningRepository(dbfactory), unitOfWork); _promotionalOfferService = new PromotionalOfferService(new PromotionalOfferRepository(dbfactory), new PromotionalOfferDetailRepository(dbfactory), new UnitOfWork(dbfactory)); }
public DeviceModelController(IDeviceDataModelService devicemodelService, ICustomerService customerService, IDistributorService distributorService, IDealerService dealerService, IDeviceTypeService devicetypeService) { this.devicemodelService = devicemodelService; this.customerService = customerService; this.distributorService = distributorService; this.dealerService = dealerService; this.devicetypeService = devicetypeService; }
public ReturnRequestService(IUnitOfWork unitOfWork, IDistributorService distributorService) { _unitOfWork = unitOfWork; _returnRequestRepository = unitOfWork.Repository <ReturnRequest>(); _distributorRepository = unitOfWork.Repository <Distributor>(); _returnRequestDetailRepository = unitOfWork.Repository <ReturnRequestDetail>(); _distributorService = distributorService; }
public ProfileImageMergingController(IProfileImageMergingService profileImageMergingService, ILogger logger, IDistributorService distributorService, IWorkContext workContext, IAppSettings appSettings, IResourceManager resourceManager) { _profileImageMergingService = profileImageMergingService; _logger = logger; _distributorService = distributorService; _appSettings = appSettings; _resourceManager = resourceManager; }
public DeviceModelController(IDeviceDataModelService devicemodelService, ICustomerService customerService, IDistributorService distributorService, IDealerService dealerService, IDeviceTypeService devicetypeService) { this.devicemodelService = devicemodelService; this.customerService = customerService; this.distributorService = distributorService; this.dealerService = dealerService; this.devicetypeService = devicetypeService; }
//public ExcelUploadController(ITblDisburseTmpService objTblDisburseTmpService, IDistributorService objDstributorService) : base() public ExcelUploadController(ITblDisburseTmpService objTblDisburseTmpService, IDistributorService objDstributorService, IAgentService objAgentService, IAuditTrailService objAuditTrailService) : base() { this._TblDisburseTmpService = objTblDisburseTmpService; this._distributorService = objDstributorService; this._agentService = objAgentService; _auditTrailService = objAuditTrailService; }
public ProfileImageMergingService(IDistributorService distributorService, IRepository <ProspectAvatar> prospectAvatarRepository, IRepository <ProfileBox> profileBoxRepository, IRepository <Profile> profileRepository, IAppSettings appSettings, IResourceManager resourceManager, IDbContext wtaDbContext) { _distributorService = distributorService; _prospectAvatarRepository = prospectAvatarRepository; _profileRepository = profileRepository; _appSettings = appSettings; _resourceManager = resourceManager; _wtaDbContext = wtaDbContext; }
public ContractController(IContractService _serviceContract, IDistributorService _serviceDistributor, IStaffService _serviceStaff, IPDistributorService _servicePDis, IRepresentativeService _serviceRep) { this.con_Service = _serviceContract; this.dis_Service = _serviceDistributor; this.staff_Service = _serviceStaff; this.pDis_Service = _servicePDis; this.rep_Service = _serviceRep; }
public AspNetRolesController(IHrDbContext context, ILogger logger, IRoleService roleService, IDistributorService distributor, INavService navService, IRoleNavService roleNavService) { _context = context; _roleService = roleService; _distributorService = distributor; _navService = navService; _roleNavService = roleNavService; _logger = logger; }
/// <summary> /// Hà m khởi tạo /// </summary> /// <param name="unitOfWork"></param> /// <returns></returns> public OrderService(IUnitOfWork unitOfWork, IDistributorService distributorService) { _orderRepository = unitOfWork.Repository <Order>(); _distributorRepository = unitOfWork.Repository <Distributor>(); _consigneeRepository = unitOfWork.Repository <Consignee>(); _orderDetailRepository = unitOfWork.Repository <OrderDetail>(); _unitOfWork = unitOfWork; _distributorService = distributorService; }
public DeliveryOrderController(IDistributorService disService, IProductService productService, IPromotionService promotionService, IDeliveryOrderService deliveryOrderService, IOrderService orderService, IStaffService staffService) { this._deliveryOrderService = deliveryOrderService; this._orderService = orderService; this._staffService = staffService; this._promotionService = promotionService; this._productService = productService; this._disService = disService; }
public OrdersController(IProductService _productService, IOrderService _orderService, IOrderDetailService _detailService, IInvoiceService _invoiceService, IDistributorService _distributorService, IEmployeeService _employeeService) { this.productService = _productService; this.orderService = _orderService; this.detailService = _detailService; this.invoiceService = _invoiceService; this.distributorService = _distributorService; this.employeeService = _employeeService; //this.paymentService = _paymentService; }
public BillController(IAccountService accountService, IStaffService staffService, IOrderService orderService, IBillService billService, IDeliveryOrderService dOrderService, IDistributorService distributorBservice) { this._billService = billService; this._dOrderService = dOrderService; this._distributoriervice = distributorBservice; this._orderService = orderService; this._staffService = staffService; this._accountService = accountService; }
public DistributorController(ICustomerRequestService _customerRequestService, IErrorLogService _errorLogService, IAuditTrailService _auditTrailService, ILocationService locationService, IKycService kycService, IDistributorService distributorService, IDsrService objDsrService, IDormantAccService _dormantAccService) { this.auditTrailService = _auditTrailService; this._distributorService = distributorService; this._DsrService = objDsrService; this.dormantAccService = _dormantAccService; this._kycService = kycService; this._locationService = locationService; this.errorLogService = _errorLogService; this.customerRequestService = _customerRequestService; }
public ContractService(IUnitOfWork _unitOfWork, IRepresentativeService _serviceRep, IDistributorService _serviceDis, IAccountService _serviceAccount) { uow = _unitOfWork; repo_con = uow.Repository <Contract>(); repo_dis = uow.Repository <Distributor>(); repo_pDis = uow.Repository <PotentialDistributor>(); repo_rep = uow.Repository <Representative>(); service_rep = _serviceRep; service_dis = _serviceDis; service_account = _serviceAccount; }
public async Task GetById_WithNotExistingDistributorn_ShouldReturnEmptyResults() { string errorMessagePrefix = "DistributorServiceModel GetById(long id) method does not work properly."; var context = HealthInsDbContextInMemoryFactory.InitializeContext(); this.distributorService = new DistributorService(context); await SeedData(context); var actualResults = this.distributorService.GetById(5); Assert.True(actualResults == null, errorMessagePrefix); }
public DataPurgeWorker( IDataPurgeService dataPurgeService, IProfileService profileService, IDistributorService distributorService, ILogger logger, IAppSettings appSettings) { _dataPurgeService = dataPurgeService; _profileService = profileService; _distributorService = distributorService; _logger = logger; _appSettings = appSettings; }
// // GET: /Sales/RouteSetup/ public RouteSetupController() { var dbfactory = new DatabaseFactory(); var unitOfWork = new UnitOfWork(dbfactory); _service = new RouteSetupService(new RouteSetupRepository(dbfactory), new RouteSetupDetailRepository(dbfactory), new UnitOfWork(dbfactory)); _routePlanService = new RoutePlanService(new RoutePlanRepository(dbfactory), new RoutePlanDetailRepository(dbfactory), new RoutePlanApprovalRepository(dbfactory), new NotificationRepository(dbfactory), new NotificationDetailRepository(dbfactory), new UnitOfWork(dbfactory)); _approvalController = new ApprovalController<SlsRoutePlanApproval, SlsRoutePlan>(_routePlanService); _distributorservice = new DistributorService(new DistributorRepository(dbfactory), unitOfWork); _retailerservice = new RetailerService(new RetailerRepository(dbfactory), unitOfWork); _delearservice = new DealerService(new DealerRepository(dbfactory), unitOfWork); _corporateclientservice = new CorporateClientService(new CorporateClientRepository(dbfactory), unitOfWork); }
public async Task SearchPerson_ByNoCriteria_ShouldReturnAllDistributors() { string errorMessagePrefix = "DistributorService SearchDistributor(DistributorSearchViewModel) method does not work properly."; var context = HealthInsDbContextInMemoryFactory.InitializeContext(); this.distributorService = new DistributorService(context); await SeedData(context); DistributorSearchViewModel distributorSearchViewModel = new DistributorSearchViewModel() { }; var actualResults = this.distributorService.SearchDistributor(distributorSearchViewModel); Assert.True(actualResults.Count() == 2, errorMessagePrefix); }
public BrandexController( IWebHostEnvironment hostEnvironment, ISalesService salesService, INumbersChecker numbersChecker, IProductsService productsService, IPharmaciesService pharmaciesService, IDistributorService distributorService ) { this.hostEnvironment = hostEnvironment; this.salesService = salesService; this.numbersChecker = numbersChecker; this.productsService = productsService; this.pharmaciesService = pharmaciesService; this.distributorService = distributorService; }
public ProfileController( IProfileService profileService, IDistributorService distributorService, IResourceManager resourceManager, IExportManager exportManager, ILogger logger, IWorkContext workContext, IAppSettings appSettings) { _profileService = profileService; _distributorService = distributorService; _resourceManager = resourceManager; _exportManager = exportManager; _logger = logger; _workContext = workContext; _appSettings = appSettings; }
public async Task Create_ShouldReturnCorrectResults() { string errorMessagePrefix = "DistributorService Create(DistributorServiceModel) method does not work properly."; var context = HealthInsDbContextInMemoryFactory.InitializeContext(); this.distributorService = new DistributorService(context); await SeedData(context); var org = new Organization() { Id = 21, FullName = "Org 2", Vat = "1232423455", }; var user = new HealthInsUser() { Id = "a2", FullName = "User 2", UserName = "******" }; await context.AddAsync(org); await context.AddAsync(user); await context.SaveChangesAsync(); DistributorServiceModel newDist = new DistributorServiceModel() { Id = 14, OrganizationId = org.Id, FullName = "Dist3", UserUserName = user.UserName, }; var actualResults = await this.distributorService.Create(newDist); var actualEntry = this.distributorService.GetById(14); Assert.True(newDist.FullName == actualEntry.FullName, errorMessagePrefix + " " + "FullName is not returned properly."); Assert.True(newDist.OrganizationId == actualEntry.OrganizationId, errorMessagePrefix + " " + "Organization is not returned properly."); Assert.True(actualEntry.Organization != null, errorMessagePrefix + " " + "Organization is not returned properly."); Assert.True(newDist.UserUserName == actualEntry.UserUserName, errorMessagePrefix + " " + "User is not returned properly."); Assert.True(actualEntry.User != null, errorMessagePrefix + " " + "User is not returned properly."); }
public async Task Update_ShouldReturnCorrectResults() { string errorMessagePrefix = "DistributorService Update(DistributorServiceModel) method does not work properly."; var context = HealthInsDbContextInMemoryFactory.InitializeContext(); this.distributorService = new DistributorService(context); await SeedData(context); var persons = context.Persons.ToList(); var user2 = new HealthInsUser() { Id = "a155", FullName = "User 155", UserName = "******" }; var org2 = new Organization() { Id = 155, FullName = "Org 155", Vat = "123242342", }; await context.AddAsync(org2); await context.AddAsync(user2); await context.SaveChangesAsync(); DistributorServiceModel dist = context.Distributors.First().To <DistributorServiceModel>(); dist.FullName = "Dist 123"; dist.OrganizationId = 155; dist.UserUserName = "******"; var actualResults = await this.distributorService.Update(dist); var actualEntry = this.distributorService.GetById(dist.Id); Assert.True(dist.FullName == actualEntry.FullName, errorMessagePrefix + " " + "FullName is not returned properly."); Assert.True(dist.OrganizationId == actualEntry.OrganizationId, errorMessagePrefix + " " + "Organization is not returned properly."); Assert.True(dist.UserUserName == dist.UserUserName, errorMessagePrefix + " " + "User is not returned properly."); }
public async Task SearchPerson_ByUserName_ShouldReturnResults() { string errorMessagePrefix = "DistributorService SearchDistributor(DistributorSearchViewModel) method does not work properly."; var context = HealthInsDbContextInMemoryFactory.InitializeContext(); this.distributorService = new DistributorService(context); await SeedData(context); DistributorSearchViewModel distributorSearchViewModel = new DistributorSearchViewModel() { ReferenceId = "user1", SearchBy = "userName" }; var actualResults = this.distributorService.SearchDistributor(distributorSearchViewModel); Assert.True(actualResults.FirstOrDefault().Id == 12, errorMessagePrefix); }
public ApplicationFacade( ISessionService sessionService, IDistributorService distributorService, IRepository <Badge, string> badgeRepository, IRepository <Declaration> declarationRepository, ISecurityService securityService, IAuthenticationService authenticationService, IRepository <Owner> ownerRepository, IMapperService mapperService) { this.SessionService = sessionService; this.DistributorService = distributorService; this.BadgeRepository = badgeRepository; this.SecurityService = securityService; this.DeclarationRepository = declarationRepository; this.AuthenticationService = authenticationService; this.OwnerRepository = ownerRepository; this.MapperService = mapperService; }
public DistributorController( IDistributorService distributorService, IWebHelper webHelper, IExcelParamManager excelParamManager, IResourceManager resourceManager, IExportManager exportManager, ILogger logger, IWarehouseService warehouseService, IWorkContext workContext) { _distributorService = distributorService; _webHelper = webHelper; _excelParamManager = excelParamManager; _resourceManager = resourceManager; _exportManager = exportManager; _logger = logger; _workContext = workContext; _warehouseService = warehouseService; }
//private readonly IResourceManager _resourceManager; public ProfileService( IDbContext dbContext, IRepository <DataLog> dataLogRepository, IRepository <ProfileBox> profileBoxRepository, IRepository <Profile> profileRepository, IRepository <ProfileScan> profileScanRepository, IDataHelper dataHelper, IAppSettings appSettings, ILogger logger, IDistributorService distributorService) : base(dataLogRepository) { this._dbContext = dbContext; this._profileBoxRepository = profileBoxRepository; this._profileRepository = profileRepository; this._profileScanRepository = profileScanRepository; this._dataHelper = dataHelper; this._appSettings = appSettings; this._logger = logger; this._distributorService = distributorService; }
public DistributorController(IDistributorService distributorService) { this._distributorService = distributorService; }
public CustomerController(ICustomerService customerService, IDistributorService distributorService, IDealerService dealerService) { this._customerService = customerService; this._distributorService = distributorService; this._dealerService = dealerService; }
public DealerController(IDealerService dealerService, IDistributorService distributorService) { this._dealerService = dealerService; this._distributorService = distributorService; }
public DistributorController() { var dbfactory = new DatabaseFactory(); _distributorService = new DistributorService(new DistributorRepository(dbfactory), new UnitOfWork(dbfactory)); }