Exemple #1
0
 public TestBLL()
 {
     shopRepo     = new ShopRepository(conn);
     businessRepo = new BusinessRepository(conn);
     imgRepo      = new ImagesRepository(conn);
     prodRepo     = new ProductRepository(conn);
     unitRepo     = new UnitRepository(conn);
     priceRepo    = new PriceRepository(conn);
     costRepo     = new CostRepository(conn);
     stockRepo    = new StockRepository(conn);
     userRepo     = new UserRepository(conn);
     billsRepo    = new BillsRepository(conn);
     expRepo      = new ExpensesRepository(conn);
     foldersRepo  = new FoldersRepository(conn);
     dbBase       = new DropBoxBase("o9340xsv2mzn7ws", "xzky2fzfnmssik1");
     checker      = new ShopsChecker(shopRepo);
     dbBase.GeneratedAuthenticationURL();
     dbBase.GenerateAccessToken();
     prodService = new ProductService(shopRepo, businessRepo, imgRepo, dbBase, prodRepo, unitRepo, priceRepo,
                                      costRepo, stockRepo, ordersRepo, strategy, new FoldersDataService(foldersRepo, prodRepo));
     orderStockRepo     = new OrderStockRepository(conn);
     strategy           = new FifoStrategy(orderStockRepo, stockRepo, costRepo);
     salesService       = new SalesSerivce(userRepo, shopRepo, billsRepo, prodRepo, priceRepo, imgRepo, strategy, checker, costRepo);
     ordersRepo         = new OrdersRepository(conn);
     productDataService = new ProductDataService(dbBase);
 }
Exemple #2
0
 public AdviseGroupService(IAdviseGroupRepository adviseGroupRepository, IFoldersRepository foldersRepository,
                           IDiscsRepository discsRepository, ILogger <AdviseGroupService> logger)
 {
     this.adviseGroupRepository = adviseGroupRepository ?? throw new ArgumentNullException(nameof(adviseGroupRepository));
     this.foldersRepository     = foldersRepository ?? throw new ArgumentNullException(nameof(foldersRepository));
     this.discsRepository       = discsRepository ?? throw new ArgumentNullException(nameof(discsRepository));
     this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemple #3
0
 public CreateImageAssetCommandHandler(
     IFoldersRepository foldersRepository,
     IImageAssetsRepository imageAssetsRepository,
     IMediaAssetsBlobContainerFactory mediaAssetsBlobContainerFactory)
 {
     this.foldersRepository     = foldersRepository;
     this.imageAssetsRepository = imageAssetsRepository;
     blobContainerClient        = mediaAssetsBlobContainerFactory.GetContainerClient();
 }
 public FoldersService(IFoldersRepository foldersRepository, IStorageRepository storageRepository,
                       IAdviseGroupService adviseGroupService, IClock clock, ILogger <FoldersService> logger)
 {
     this.foldersRepository  = foldersRepository ?? throw new ArgumentNullException(nameof(foldersRepository));
     this.storageRepository  = storageRepository ?? throw new ArgumentNullException(nameof(storageRepository));
     this.adviseGroupService = adviseGroupService ?? throw new ArgumentNullException(nameof(adviseGroupService));
     this.clock  = clock ?? throw new ArgumentNullException(nameof(clock));
     this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemple #5
0
 public VideoService(IVideoRepository videoRepository,
                     IFoldersRepository foldersRepository, IILinkRepository linkRepository,
                     IMapper mapper, IOptions <CommonSettings> settings)
 {
     _foldersRepository = foldersRepository;
     _videoRepository   = videoRepository;
     _linkRepository    = linkRepository;
     _mapper            = mapper;
     _commonSettings    = settings.Value;
 }
Exemple #6
0
 public UserService(IUserRepository userRepository, IEmailService emailService,
                    IWebHostEnvironment appEnvironment,
                    IFoldersRepository foldersRepository,
                    RazorLightEngine razorLightEngine,
                    IMapper mapper, IOptions <CommonSettings> commonSettings)
 {
     _userRepository    = userRepository;
     _appEnvironment    = appEnvironment;
     _foldersRepository = foldersRepository;
     _mapper            = mapper;
     _razorLightEngine  = razorLightEngine;
     _emailService      = emailService;
     _commonSettings    = commonSettings.Value;
 }
Exemple #7
0
 public FolderService(IFoldersRepository foldersRepository)
 {
     _foldersRepository = foldersRepository;
 }
Exemple #8
0
 public FoldersController(IFoldersRepository repository)
 {
     _repository = repository;
 }
 public FoldersDataService(IFoldersRepository foldersRepo, IProductRepository productRepo)
 {
     _foldersRepo    = foldersRepo;
     _productRepo    = productRepo;
     _categoryFiller = new CategoryTreeFiller();
 }
Exemple #10
0
 public FoldersService(IFoldersRepository foldersRepository,
                       IMapper mapper)
 {
     _foldersRepository = foldersRepository;
     _mapper            = mapper;
 }
 public CreateFolderCommandHandler(IFoldersRepository foldersRepository)
 {
     this.foldersRepository = foldersRepository;
 }
Exemple #12
0
 public AttachmentsComponent(IDocumentsRepository DocumentsRepository, IFoldersRepository FoldersRepository)
 {
     this.DocumentsRepository = DocumentsRepository;
     this.FoldersRepository   = FoldersRepository;
 }
 public ReadFolderQueryHandler(IFoldersRepository foldersRepository)
 {
     this.foldersRepository = foldersRepository;
 }
Exemple #14
0
 public FoldersService(IFoldersRepository foldersRepository)
 {
     _foldersRepository = foldersRepository ?? throw new ArgumentNullException(nameof(foldersRepository));
 }