public delegateController(IManageRepository _manageRepository, IBomRepository _bomrepository, IPurchaseRepository _bomRepository, IStockInRepository _stockinrepository, IStockOutRepository _stockoutrepository) { manageService = new ManageService(_manageRepository); bomService = new BomService(_bomrepository); stockoutService = new StockOutService(_stockoutrepository); stockinService = new StockInService(_stockinrepository); purchaseService = new PurchaseService(_bomRepository); }
public mainController(IAccountRepository _accountRepository, IManageRepository _manageRepository, IPurchaseRepository _purchaseRepository, IStockInRepository _stockinrepository, IStockOutRepository _stockoutrepository, IBomRepository _bomrepository) { accountService = new AccountService(_accountRepository); purchaseService = new PurchaseService(_purchaseRepository); stockinService = new StockInService(_stockinrepository); stockoutService = new StockOutService(_stockoutrepository); manageService = new ManageService(_manageRepository); bomService = new BomService(_bomrepository); }
public ProductService(IGenreRepository genreRepository, IPictureService pictureService, IPictureRepository pictureRepository, IArtistRepository artistRepository, IAlbumRepository albumRepository, IPurchaseRepository purchaseRepository) { this.GenreRepository = genreRepository; this.PictureRepository = pictureRepository; this.PictureService = pictureService; this.ArtistRepository = artistRepository; this.AlbumRepository = albumRepository; this.PurchaseRepository = purchaseRepository; }
public PurchaseService(ICustomerRepository customerRepository, IProductRepository productRepository, IPurchaseRepository purchaseRepository, IStoreRepository storeRepository, IBookRepository bookRepository, IConfiguration configuration) { _customerRepository = customerRepository; _productRepository = productRepository; _purchaseRepository = purchaseRepository; _storeRepository = storeRepository; _bookRepository = bookRepository; _propertyGetter = new PropertyGetter(configuration.GetConnectionString("ChainStoreDBVer2")); }
public UserService(IUserRepository userRepository, ICryptoService cryptoService, IPurchaseRepository purchaseRepository, IMovieService movieService, MovieStoreDbContext dbContext, IFavoriteRepository favoriteRepository) { _userRepository = userRepository; _cryptoService = cryptoService; _purchaseRepository = purchaseRepository; _movieService = movieService; _dbContext = dbContext; _favoriteRepository = favoriteRepository; }
public UserService(IUserRepository userRepository, ICryptoService cryptoService, IMovieService movieService, IPurchaseRepository purchaseRepository, IFavoriteRepository favoriteRepository, IReviewRepository reviewRepository) { _userRepository = userRepository; _cryptoService = cryptoService; _movieService = movieService; _purchaseRepository = purchaseRepository; _favoriteRepository = favoriteRepository; _reviewRepository = reviewRepository; }
public MovieService(IMovieRepository movieRepository, IMapper mapper, IAsyncRepository <MovieGenre> genresRepository, IPurchaseRepository purchaseRepository, IAsyncRepository <Favorite> favoriteRepository) { _movieRepository = movieRepository; _mapper = mapper; _genresRepository = genresRepository; _purchaseRepository = purchaseRepository; _favoriteRepository = favoriteRepository; }
public CartController(ISession session, ICartRepository cartRepository, IProductRepository productRepository, IVoucherRepository voucherRepository, IPurchaseRepository purchaseRepository) { _session = session; _cartRepository = cartRepository; _productRepository = productRepository; _voucherRepository = voucherRepository; _purchaseRepository = purchaseRepository; }
public UserService(IUserRepository userRepository, ICryptoService encryptionService, IPurchaseRepository purchaseRepository, IAsyncRepository <Favorite> favoriteRepository, IAsyncRepository <Review> reviewRepository) { _userRepository = userRepository; _encryptionService = encryptionService; _purchaseRepository = purchaseRepository; _favoriteRepository = favoriteRepository; _reviewRepository = reviewRepository; }
public MovementHandler(IAdjustmentRepository adjustmentRepository, IOutputRepository outputRepository, IPurchaseRepository purchaseRepository, IMovementRepository movementRepository, IMovementService movementService) { _adjustmentRepository = adjustmentRepository; _outputRepository = outputRepository; _purchaseRepository = purchaseRepository; _movementRepository = movementRepository; _movementService = movementService; }
public UserService(IUserRepository userRepository, ICryptoService cryptoService, ICurrentUserService currentUserService, IMovieService movieService, IPurchaseRepository purchaseRepository, IAsyncRepository <Favorite> favoriteRepository, IAsyncRepository <Review> reviewRepository) { _userRepository = userRepository; _cryptoService = cryptoService; _currentUserService = currentUserService; _movieService = movieService; _purchaseRepository = purchaseRepository; _favoriteRepository = favoriteRepository; _reviewRepository = reviewRepository; }
static void Main(string[] args) { customerFileName = getFilePath() + "Data\\CustomerInvoicingData.csv"; purchaseFileName = getFilePath() + "Data\\SmallGroup-SalesData.csv"; stateRepository = new StateRepository(StateRepository.GetStates()); purchaseRepository = new PurchaseRepository(PurchaseRepository.GetPurchases(purchaseFileName, stateRepository), purchaseFileName); customerRepository = new CustomerRepository(CustomerRepository.GetCustomers(customerFileName, purchaseRepository, stateRepository), customerFileName); customerContext = new CustomerContext(customerRepository, purchaseRepository); displayMenu(); }
public HomeController(IPurchaseRepository purchaseRepo, IHostingEnvironment env, IUserRepository userRepo, IEventRepository eventRepo, ICommentRepository commentRepo, AppDBContext db) { EventRepo = eventRepo; PurchaseRepp = purchaseRepo; Env = env; CommentRepo = commentRepo; this.db = db; }
public PurchaseApplicationService(IMapper mapper, IPurchaseService purchaseService, IPurchaseRepository purchaseRepository, IProductRepository productRepository, IValidator <AddOrUpdatePurchaseDto> validatorPurchase, IValidator <AddOrUpdatePurchaseItemDto> validatorPurchaseItem) { _mapper = mapper; _purchaseService = purchaseService; _purchaseRepository = purchaseRepository; _productRepository = productRepository; _validatorPurchase = validatorPurchase; _validatorPurchaseItem = validatorPurchaseItem; }
public PurchaseApplication(IMapper mapper, IUnitOfWork uow, IMediatorHandler mediator, IHttpContextAccessor httpContextAccessor, IDealerApplication dealerApplication, IPurchaseRepository purchaseRepository, INotificationHandler <ApplicationNotification> notifications) : base(uow, mediator, httpContextAccessor, notifications) { _mapper = mapper; _mediator = mediator; _dealerApplication = dealerApplication; _purchaseRepository = purchaseRepository; }
public PurchaseUI(MainUI frmMain) { this.frmMain = frmMain; purchaseRepository = ServiceLocator.GetObject <IPurchaseRepository>(); purchaseItemRepository = ServiceLocator.GetObject <IPurchaseItemRepository>(); supplierRepository = ServiceLocator.GetObject <ISupplierRepository>(); debtBalanceRepository = ServiceLocator.GetObject <IDebtBalanceRepository>(); userAccessRepository = ServiceLocator.GetObject <IUserAccessRepository>(); InitializeComponent(); }
public void initialize() { Database.SetInitializer(new DropCreateMMDbWithSeedDataForBusinessTest()); MMContext context = new MMContext(); ITutorRepository tutorR = new TutorRepository(context); IProductRepository productR = new ProductRepository(context); IMemberRepository memberR = new MemberRepository(context); purchaseR = new PurchaseRepository(context); balanceR = new BalanceRepository(context); consumptionR = new ConsumptionRepository(context); mediumR = new MediumRepository(context); //_admin = new Administrator(_tutorR, _productR, _memberR, _purchaseR, _balanceR, _consumptionR, _mediumR); }
/// <summary> /// /// </summary> /// <param name="purchaseRepository"></param> /// <param name="itemForSaleMockRepository"></param> /// <param name="accountMockRepository"></param> /// <param name="deliveryMockRepository"></param> /// <param name="logger"></param> /// <param name="contextAccessor"></param> /// <param name="mapper"></param> /// <param name="linkGenerator"></param> /// <param name="auth"></param> public PurchaseController(IPurchaseRepository purchaseRepository, IItemForSaleMockRepository itemForSaleMockRepository, IAccountMockRepository accountMockRepository, IDeliveryMockRepository deliveryMockRepository, ILoggerMockRepository logger, IHttpContextAccessor contextAccessor, IMapper mapper, LinkGenerator linkGenerator, IAuth auth) { this.purchaseRepository = purchaseRepository; this.itemForSaleMockRepository = itemForSaleMockRepository; this.accountMockRepository = accountMockRepository; this.deliveryMockRepository = deliveryMockRepository; this.logger = logger; this.contextAccessor = contextAccessor; this.mapper = mapper; this.linkGenerator = linkGenerator; this.auth = auth; }
public StudioServiceByMgrs(IProductMgr productMgr, IMemberMgr memberMgr, ITutorMgr tutorMgr, IPurchaseRepository purchaseRepository, IBalanceMgr balanceMgr, IConsumptionRepository consumptionRepository) { _memberMgr = memberMgr; _productMgr = productMgr; _tutorMgr = tutorMgr; _purchaseRepository = purchaseRepository; _balanceMgr = balanceMgr; _consumptionRepository = consumptionRepository; }
public DashboardService(IUnitOfWork uow, INCRegisterRepository ncRegRep, INCDataUploadRepository ncDataUpRep, INCPurchaseRepository ncPurchaseRep, IAuctionRepository auctRep, IPurchaseRepository purchRep, IConfirmationRepository confRep) { this.auctRep = auctRep; this.confRep = confRep; this.ncDataUpRep = ncDataUpRep; this.ncPurchaseRep = ncPurchaseRep; this.ncRegRep = ncRegRep; this.purchRep = purchRep; }
public FinPosService(ICompanyRepository companyRepository, IBranchRepository branchRepository, IUserRepository userRepository, IProductRepository productRepository, IPurchaseRepository purchaseRepository, ICategoryRepository categoryRepository, ILabelSettingRepository labelSettingRepository, ISupplierRepository supplierRepository, IOpeningStockRepository openingStockRepository, IStockAdjustmentRepository stockAdjustmentRepository, ISystemConfigurationRepository systemConfigurationRepository, ITaxRepository taxRepository) { _companyRepository = companyRepository; _branchRepository = branchRepository; _userRepository = userRepository; _productRepository = productRepository; _categoryRepository = categoryRepository; _purchaseRepository = purchaseRepository; _labelSettingRepository = labelSettingRepository; _supplierRepository = supplierRepository; _openingStockRepository = openingStockRepository; _stockAdjustmentRepository = stockAdjustmentRepository; _systemConfigurationRepository = systemConfigurationRepository; _taxRepository = taxRepository; }
public ReportPrintUI(MainUI frmMain) { this.frmMain = frmMain; ds = new BizCareDataSet(); salesRepository = ServiceLocator.GetObject <ISalesRepository>(); purchaseRepository = ServiceLocator.GetObject <IPurchaseRepository>(); billReceiptRepository = ServiceLocator.GetObject <IBillReceiptRepository>(); expenseRepository = ServiceLocator.GetObject <IExpenseRepository>(); stockCorrectionRepository = ServiceLocator.GetObject <IStockCorrectionRepository>(); InitializeComponent(); }
public ClosingPeriodUI(MainUI frmMain) { this.frmMain = frmMain; salesRepository = ServiceLocator.GetObject <ISalesRepository>(); purchaseRepository = ServiceLocator.GetObject <IPurchaseRepository>(); payableBalanceRepository = ServiceLocator.GetObject <IPayableBalanceRepository>(); debtBalanceRepository = ServiceLocator.GetObject <IDebtBalanceRepository>(); recordCounterRepository = ServiceLocator.GetObject <IRecordCounterRepository>(); salesmanFeeRepository = ServiceLocator.GetObject <ISalesmanFeeRepository>(); productQtyRepository = ServiceLocator.GetObject <IProductQtyRepository>(); inventoryRepository = ServiceLocator.GetObject <IInventoryRepository>(); InitializeComponent(); }
public SportStoreRepository() { this.dbContext = new SportStoreDbContext(); this.cartRepository = new CartRepository(); this.categoryRepository = new CategoryRepository(); this.configRepository = new ConfigRepository(); this.manufacturerRepository = new ManufacturerRepository(); this.paymentRepository = new PaymentMethodRepository(); this.productRepository = new ProductRepository(); this.purchaseRepository = new PurchaseRepository(); this.purchasedProductRepository = new PurchasedProductRepository(); this.reviewRepository = new ReviewRepository(); this.roleRepository = new RoleRepository(); this.sessionRepository = new SessionRepository(); this.shippingAddressRepository = new ShippingAddressRepository(); this.userRepository = new UserRepository(); }
public ProfileViewModel(IAuthenticator authenticator, IClientRepository clientRepository, IPurchaseRepository purchaseRepository, IBookRepository bookRepository) { _authenticator = authenticator; _clientRepository = clientRepository; _purchaseRepository = purchaseRepository; _bookRepository = bookRepository; Messenger.Default.Register <RefreshDataMessage>(this, RefreshData); NavigateToPurchase = new RelayCommand(productId => { Messenger.Default.Send(new NavigationMessage(nameof(PurchaseViewModel), (Guid)productId)); ClearData(); }); ClientBooks = new ObservableCollection <BookInfo>(); ClientPurchases = new ObservableCollection <PurchaseInfo>(); Filter = new RelayCommand(HandleFiltering); ClearFilter = new RelayCommand(HandleCleaning); }
public PurchaseService(IPurchaseRepository repo, IRepository<Product> prodrepo, IRepository<Vendor> vendrepo, IRepository<ShipMethod> shiprepo) { _repository = repo; _productrepo = prodrepo; _vendorrepo = vendrepo; _shipmethodrepo = shiprepo; Mapper.CreateMap<PurchaseOrderHeader, IPurchaseHeader>(); Mapper.CreateMap<IPurchaseHeader, PurchaseOrderHeader>(); Mapper.CreateMap<PurchaseOrderDetail, IPurchaseDetail>(); Mapper.CreateMap<IPurchaseDetail, PurchaseOrderDetail>(); Mapper.CreateMap<PurchaseOrderHeader, PurchaseOrderHeader>(); Mapper.CreateMap<PurchaseOrderDetail, PurchaseOrderDetail>(); Mapper.CreateMap<Product, IMaster>(); Mapper.CreateMap<Vendor,IMaster>(); Mapper.CreateMap<ShipMethod, IMaster>(); }
public PurchaseService(IPurchaseApplicationHeaderRepository purchaseApplicationHeaderRepository, IPurchaseApplicationRepository purchaseApplicationRepository, IPurchaseHeaderRepository purchaseHeaderRepository, IPurchaseRepository purchaseRepository, IRequestHeaderRepository requestHeaderRepository, IRequestService requestService, IManagementService managementService, IInStockRepository inStockRepository, IMapper mapper) { _purchaseApplicationHeaderRepository = purchaseApplicationHeaderRepository; _purchaseApplicationRepository = purchaseApplicationRepository; _purchaseHeaderRepository = purchaseHeaderRepository; _purchaseRepository = purchaseRepository; _requestHeaderRepository = requestHeaderRepository; _requestService = requestService; _managementService = managementService; _inStockRepository = inStockRepository; _mapper = mapper; }
public static IList <Customer> GetCustomers(string customerFile, IPurchaseRepository purchaseRepository, IStateRepository stateRepository) { var customers = new List <Customer>(); if (!File.Exists(customerFile)) { return(customers); } string line = null; using (StreamReader file = new StreamReader(customerFile)) { int lineCounter = 0; while ((line = file.ReadLine()) != null) { if (lineCounter > 0) //skip 1st line of headers { string[] fields = line.Split(','); int customerId = Convert.ToInt32(fields[0]); IList <Purchase> purchases = purchaseRepository.GetPurchasesByCustomerId(customerId); var customer = new Customer(purchases) { Id = customerId, Name = fields[1], AddressLine1 = fields[2], AddressLine2 = fields[3], City = fields[4], State = stateRepository.GetState(fields[5]), Zip = fields[6], CreditLimit = Convert.ToDouble(fields[7]) }; customers.Add(customer); } lineCounter++; } file.Close(); } return(customers); }
public ManageController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEmailSender emailSender, ILogger <ManageController> logger, UrlEncoder urlEncoder, IApplicationUserRepository repository, IBookRepository bookRepository, IPurchaseRepository purchaseRepository, IHostingEnvironment environment) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _logger = logger; _urlEncoder = urlEncoder; _repository = repository; _bookRepository = bookRepository; _purchaseRepository = purchaseRepository; _environment = environment; }
public async Task <IActionResult> Get([FromServices] IPurchaseRepository purchaseRepository, string id) { try { var purchase = await purchaseRepository.GetById(id); _logger.LogInformation($"Usuário ({User?.Identity.Name}) efetuou uma busca pelo pedido com ID: {id}."); if (purchase == null) { _logger.LogInformation($"Pedido com ID: {id} não encontrado."); return(NotFound()); } return(Ok(purchase)); } catch (Exception ex) { _logger.LogError(ex.Message); return(BadRequest(ex)); } }
public async Task <IActionResult> Delete([FromServices] IPurchaseRepository purchaseRepository, string id) { try { var purchase = await purchaseRepository.GetById(id); if (purchase == null) { _logger.LogInformation($"Pedido com ID: {id} não encontrado."); return(NotFound()); } await purchaseRepository.DeleteAsync(purchase); _logger.LogInformation($"Usuário {User?.Identity.Name} Deletou o pedido com Id: {id}."); return(NoContent()); } catch (Exception ex) { _logger.LogError(ex.Message); return(BadRequest(ex)); } }
public PurchaseServices() { this._dbContextScopeFactory = new TiendaDbContext(); _repository = new PurchaseRepository(this._dbContextScopeFactory); this.OnCreated(); }
public PurchaseController(IPurchaseRepository r, IPurchaseService s) { repo = r; _service = s; }
public NCPurchaseService(IPurchaseRepository pRep, INCPurchaseRepository NCRep, IUnitOfWork uow) : base(NCRep, uow) { this._pRep = pRep; }
public stockoutController(IStockInRepository _stockinrepository, IStockOutRepository _stockoutrepository, IPurchaseRepository _purchaseRepository) { stockinService = new StockInService(_stockinrepository); stockoutService = new StockOutService(_stockoutrepository); purchaseService = new PurchaseService(_purchaseRepository); }
public PurchaseBL() { repo = new PurchaseRepository(); }
public PurchaseService(IPurchaseRepository purchaseRepository) { _purchaseRepository = purchaseRepository; }
public PurchasesController(IProductRepository productRepository, IStoreRepository storeRepository, IPurchaseRepository purchaseRepository) { this.productRepository = productRepository; this.storeRepository = storeRepository; this.purchaseRepository = purchaseRepository; }
public purchaseController(IPurchaseRepository _purchaseRepository) { purchaseService = new PurchaseService(_purchaseRepository); }
public PurchaseRepositoryService() { IoCManagerCore.Start(); _purchaseRepository = IoCManagerCore.Kernel.Get<IPurchaseRepository>(); _wrapper = new WrapperPurchase(); }