Example #1
0
 public ReceiptService(IReceiptRepository receiptRepo, ITicketRepository ticketRepo,
                       ITicketStatusRepository ticketStatusRepo)
 {
     ReceiptRepo      = receiptRepo;
     TicketRepo       = ticketRepo;
     TicketStatusRepo = ticketStatusRepo;
 }
Example #2
0
 public SmartContractsController(IBroadcasterManager broadcasterManager,
                                 IBlockStore blockStore,
                                 ConcurrentChain chain,
                                 IConsensusManager consensus,
                                 IDateTimeProvider dateTimeProvider,
                                 ILoggerFactory loggerFactory,
                                 Network network,
                                 IStateRepositoryRoot stateRoot,
                                 IWalletManager walletManager,
                                 IWalletTransactionHandler walletTransactionHandler,
                                 IAddressGenerator addressGenerator,
                                 ISerializer serializer,
                                 IReceiptRepository receiptRepository,
                                 ICallDataSerializer callDataSerializer,
                                 IMethodParameterStringSerializer methodParameterStringSerializer,
                                 ILocalExecutor localExecutor)
 {
     this.stateRoot = stateRoot;
     this.walletTransactionHandler = walletTransactionHandler;
     this.logger             = loggerFactory.CreateLogger(this.GetType().FullName);
     this.network            = network;
     this.coinType           = (CoinType)network.Consensus.CoinType;
     this.chain              = chain;
     this.blockStore         = blockStore;
     this.walletManager      = walletManager;
     this.broadcasterManager = broadcasterManager;
     this.addressGenerator   = addressGenerator;
     this.serializer         = serializer;
     this.receiptRepository  = receiptRepository;
     this.callDataSerializer = callDataSerializer;
     this.methodParameterStringSerializer = methodParameterStringSerializer;
     this.localExecutor = localExecutor;
 }
Example #3
0
 public SmartContractsController(IBroadcasterManager broadcasterManager,
                                 IBlockStoreCache blockStoreCache,
                                 ConcurrentChain chain,
                                 IDateTimeProvider dateTimeProvider,
                                 ILoggerFactory loggerFactory,
                                 Network network,
                                 IContractStateRoot stateRoot,
                                 IWalletManager walletManager,
                                 IWalletTransactionHandler walletTransactionHandler,
                                 IAddressGenerator addressGenerator,
                                 IContractPrimitiveSerializer contractPrimitiveSerializer,
                                 IReceiptRepository receiptRepository)
 {
     this.stateRoot = stateRoot;
     this.walletTransactionHandler = walletTransactionHandler;
     this.logger                      = loggerFactory.CreateLogger(this.GetType().FullName);
     this.network                     = network;
     this.coinType                    = (CoinType)network.Consensus.CoinType;
     this.chain                       = chain;
     this.blockStoreCache             = blockStoreCache;
     this.walletManager               = walletManager;
     this.broadcasterManager          = broadcasterManager;
     this.addressGenerator            = addressGenerator;
     this.contractPrimitiveSerializer = contractPrimitiveSerializer;
     this.receiptRepository           = receiptRepository;
 }
Example #4
0
        public void Setup()
        {
            _depositNodesHandlerFactory = Substitute.For <IDepositNodesHandlerFactory>();
            _sessionManager             = Substitute.For <ISessionManager>();
            _receiptsPolicies           = Substitute.For <IReceiptsPolicies>();
            _receiptProcessor           = Substitute.For <IReceiptProcessor>();
            _paymentClaimProcessor      = Substitute.For <IPaymentClaimProcessor>();
            _consumerRepository         = Substitute.For <IConsumerRepository>();
            _paymentClaimRepository     = Substitute.For <IPaymentClaimRepository>();
            _sessionRepository          = Substitute.For <IProviderSessionRepository>();
            _sessionRepository.BrowseAsync(Arg.Any <GetProviderSessions>()).Returns(PagedResult <ProviderSession> .Empty);
            _receiptRepository = Substitute.For <IReceiptRepository>();
            var unixTime = UnixTime.FromSeconds(100);

            _timestamper = Substitute.For <ITimestamper>();
            _timestamper.UnixTime.Returns(unixTime);
            _gasPriceService     = Substitute.For <IGasPriceService>();
            _logManager          = Substitute.For <ILogManager>();
            _wallet              = Substitute.For <IWallet>();
            _address             = Address.Zero;
            _consumer            = Address.Zero;
            _depositNodesHandler = new InMemoryDepositNodesHandler(Keccak.Zero, _consumer, DataAssetUnitType.Unit, 0,
                                                                   100, 0,
                                                                   0, 0, 0, 0, 0, 0, null, null, 0);
            _depositNodesHandlerFactory.CreateInMemory(Arg.Any <Keccak>(), _consumer, Arg.Any <DataAssetUnitType>(),
                                                       Arg.Any <uint>(), Arg.Any <uint>(), Arg.Any <UInt256>(), Arg.Any <uint>(), Arg.Any <uint>(), Arg.Any <uint>(),
                                                       Arg.Any <uint>(), Arg.Any <uint>(), Arg.Any <uint>(), Arg.Any <PaymentClaim>(),
                                                       Arg.Any <IEnumerable <DataDeliveryReceiptDetails> >(), Arg.Any <uint>()).Returns(_depositNodesHandler);
            _depositManager = new DepositManager(_depositNodesHandlerFactory, _sessionManager, _receiptsPolicies,
                                                 _wallet, _address, _receiptProcessor, _paymentClaimProcessor, _consumerRepository,
                                                 _paymentClaimRepository, _receiptRepository, _sessionRepository, _timestamper, _gasPriceService,
                                                 _logManager);
        }
Example #5
0
 public SaleService(IReceiptRepository receiptRepository, IMapper mapper
                    , IStoreRepository storeRepository)
 {
     _receiptRepository = receiptRepository;
     _mapper            = mapper;
     _storeRepository   = storeRepository;
 }
 public SmartContractsController(IBroadcasterManager broadcasterManager,
                                 IBlockStore blockStore,
                                 ChainIndexer chainIndexer,
                                 CSharpContractDecompiler contractDecompiler,
                                 ILoggerFactory loggerFactory,
                                 Network network,
                                 IStateRepositoryRoot stateRoot,
                                 IWalletManager walletManager,
                                 ISerializer serializer,
                                 IContractPrimitiveSerializer primitiveSerializer,
                                 IReceiptRepository receiptRepository,
                                 ILocalExecutor localExecutor,
                                 ISmartContractTransactionService smartContractTransactionService,
                                 IConnectionManager connectionManager)
 {
     this.stateRoot                       = stateRoot;
     this.contractDecompiler              = contractDecompiler;
     this.logger                          = loggerFactory.CreateLogger(this.GetType().FullName);
     this.network                         = network;
     this.chainIndexer                    = chainIndexer;
     this.blockStore                      = blockStore;
     this.walletManager                   = walletManager;
     this.broadcasterManager              = broadcasterManager;
     this.serializer                      = serializer;
     this.primitiveSerializer             = primitiveSerializer;
     this.receiptRepository               = receiptRepository;
     this.localExecutor                   = localExecutor;
     this.smartContractTransactionService = smartContractTransactionService;
     this.connectionManager               = connectionManager;
 }
 public ReceiptsController(IReceiptRepository repository)
 {
     this.repository        = repository;
     this.authService       = new AuthService();
     this.responseService   = new ResponseService();
     this.controlSumService = new ControlSumService();
 }
Example #8
0
 public SmartContractsController(IBroadcasterManager broadcasterManager,
                                 IBlockStore blockStore,
                                 ChainIndexer chainIndexer,
                                 CSharpContractDecompiler contractDecompiler,
                                 IDateTimeProvider dateTimeProvider,
                                 ILoggerFactory loggerFactory,
                                 Network network,
                                 IStateRepositoryRoot stateRoot,
                                 IWalletManager walletManager,
                                 ISerializer serializer,
                                 IReceiptRepository receiptRepository,
                                 ILocalExecutor localExecutor,
                                 ISmartContractTransactionService smartContractTransactionService,
                                 IConnectionManager connectionManager)
 {
     this.stateRoot          = stateRoot;
     this.contractDecompiler = contractDecompiler;
     this.logger             = loggerFactory.CreateLogger("Impleum.Bitcoin.Fullnode");
     this.network            = network;
     this.chainIndexer       = chainIndexer;
     this.blockStore         = blockStore;
     this.walletManager      = walletManager;
     this.broadcasterManager = broadcasterManager;
     this.serializer         = serializer;
     this.receiptRepository  = receiptRepository;
     this.localExecutor      = localExecutor;
     this.smartContractTransactionService = smartContractTransactionService;
     this.connectionManager = connectionManager;
 }
Example #9
0
 public DepositManager(IDepositNodesHandlerFactory depositNodesHandlerFactory, ISessionManager sessionManager,
                       IReceiptsPolicies receiptsPolicies, IWallet wallet, Address providerAddress,
                       IReceiptProcessor receiptProcessor, IPaymentClaimProcessor paymentClaimProcessor,
                       IConsumerRepository consumerRepository, IPaymentClaimRepository paymentClaimRepository,
                       IReceiptRepository receiptRepository, IProviderSessionRepository sessionRepository,
                       ITimestamper timestamper, IGasPriceService gasPriceService, ILogManager logManager)
 {
     _depositNodesHandlerFactory = depositNodesHandlerFactory;
     _sessionManager             = sessionManager;
     _receiptsPolicies           = receiptsPolicies;
     _wallet                  = wallet;
     _providerAddress         = providerAddress;
     _receiptProcessor        = receiptProcessor;
     _paymentClaimProcessor   = paymentClaimProcessor;
     _consumerRepository      = consumerRepository;
     _paymentClaimRepository  = paymentClaimRepository;
     _receiptRepository       = receiptRepository;
     _sessionRepository       = sessionRepository;
     _timestamper             = timestamper;
     _gasPriceService         = gasPriceService;
     _logger                  = logManager.GetClassLogger();
     _wallet.AccountLocked   += OnAccountLocked;
     _wallet.AccountUnlocked += OnAccountUnlocked;
     _accountLocked           = !_wallet.IsUnlocked(_providerAddress);
 }
 public ReceiptExportDocumentRepository(CokeDataContext ctx, IReceiptRepository receiptRepository, IMainOrderRepository mainOrderRepository, IRouteRepository routeRepository)
 {
     _ctx = ctx;
     _receiptRepository = receiptRepository;
     _mainOrderRepository = mainOrderRepository;
     _routeRepository = routeRepository;
 }
 public SmartContractsController(IBroadcasterManager broadcasterManager,
                                 IBlockStore blockStore,
                                 ConcurrentChain chain,
                                 CSharpContractDecompiler contractDecompiler,
                                 IDateTimeProvider dateTimeProvider,
                                 ILoggerFactory loggerFactory,
                                 Network network,
                                 IStateRepositoryRoot stateRoot,
                                 IWalletManager walletManager,
                                 ISerializer serializer,
                                 IReceiptRepository receiptRepository,
                                 ILocalExecutor localExecutor,
                                 ISmartContractTransactionService smartContractTransactionService)
 {
     this.stateRoot          = stateRoot;
     this.contractDecompiler = contractDecompiler;
     this.logger             = loggerFactory.CreateLogger(this.GetType().FullName);
     this.network            = network;
     this.chain              = chain;
     this.blockStore         = blockStore;
     this.walletManager      = walletManager;
     this.broadcasterManager = broadcasterManager;
     this.serializer         = serializer;
     this.receiptRepository  = receiptRepository;
     this.localExecutor      = localExecutor;
     this.smartContractTransactionService = smartContractTransactionService;
 }
 public DemoHub(ILoggerFactory loggerFactory, IReceiptRepository receiptRepository, IWalletService walletService, Network network)
 {
     _logger            = loggerFactory.CreateLogger <DemoHub>();
     _receiptRepository = receiptRepository;
     _walletService     = walletService;
     _network           = network;
 }
Example #13
0
        public SmartContractTransactionService(
            Network network,
            IWalletManager walletManager,
            IWalletTransactionHandler walletTransactionHandler,
            IMethodParameterStringSerializer methodParameterStringSerializer,
            ICallDataSerializer callDataSerializer,
            IAddressGenerator addressGenerator,
            IStateRepositoryRoot stateRoot,
            IReserveUtxoService reserveUtxoService,
            IBlockStore blockStore,
            ChainIndexer chainIndexer,
            IContractPrimitiveSerializer primitiveSerializer,
            IContractAssemblyCache contractAssemblyCache,
            IReceiptRepository receiptRepository
            )
        {
            this.network                         = network;
            this.walletManager                   = walletManager;
            this.walletTransactionHandler        = walletTransactionHandler;
            this.methodParameterStringSerializer = methodParameterStringSerializer;
            this.callDataSerializer              = callDataSerializer;
            this.addressGenerator                = addressGenerator;
            this.stateRoot                       = stateRoot;
            this.reserveUtxoService              = reserveUtxoService;

            this.blockStore            = blockStore;
            this.chainIndexer          = chainIndexer;
            this.primitiveSerializer   = primitiveSerializer;
            this.contractAssemblyCache = contractAssemblyCache;
            this.receiptRepository     = receiptRepository;
        }
 public ConfirmReceiptCommandHandler(IFinancialsWorkflow financialsWorkflow, CokeDataContext context, IReceiptRepository receiptRepository)
     :base(context)
 {
     _cokeDataContext = context;
     _financialsWorkflow = financialsWorkflow;
     _receiptRepository =receiptRepository;
 }
 public SmartContractPowConsensusRuleEngine(
     ICallDataSerializer callDataSerializer,
     ConcurrentChain chain,
     ICheckpoints checkpoints,
     ConsensusSettings consensusSettings,
     IDateTimeProvider dateTimeProvider,
     IContractExecutorFactory executorFactory,
     ILoggerFactory loggerFactory,
     Network network,
     NodeDeployments nodeDeployments,
     IStateRepositoryRoot originalStateRoot,
     IReceiptRepository receiptRepository,
     ISenderRetriever senderRetriever,
     ICoinView utxoSet,
     IChainState chainState,
     IInvalidBlockHashStore invalidBlockHashStore,
     INodeStats nodeStats)
     : base(network, loggerFactory, dateTimeProvider, chain, nodeDeployments, consensusSettings, checkpoints, utxoSet, chainState, invalidBlockHashStore, nodeStats)
 {
     this.CallDataSerializer = callDataSerializer;
     this.ExecutorFactory    = executorFactory;
     this.OriginalStateRoot  = originalStateRoot;
     this.ReceiptRepository  = receiptRepository;
     this.SenderRetriever    = senderRetriever;
 }
Example #16
0
        public void FindReceiptInclude()
        {
            Receipt receipt = new Receipt
            {
                Book = new Book {
                    Author = "Автор", Id = 1, Name = "Name"
                },
                BookId     = 1,
                Date       = DateTime.Now,
                UserId     = 1,
                DateReturn = DateTime.Now,
                Id         = 1,
                User       = new User {
                    Birthday = DateTime.Now, Id = 1, Name = "Name"
                }
            };

            _repository = new ReceiptRepository(new LibContext());
            _repository.Create(receipt);
            // Act
            var result = _repository.FindReceiptInclude(receipt.Id);

            // Assert
            Assert.IsNotNull(result);
        }
        public Unity3dController(ILoggerFactory loggerFactory, IAddressIndexer addressIndexer,
                                 IBlockStore blockStore, IChainState chainState, Network network, ICoinView coinView, WalletController walletController, ChainIndexer chainIndexer, INFTTransferIndexer NFTTransferIndexer,
                                 IStakeChain stakeChain = null,
                                 IContractPrimitiveSerializer primitiveSerializer = null, IStateRepositoryRoot stateRoot = null, IContractAssemblyCache contractAssemblyCache                   = null,
                                 IReceiptRepository receiptRepository             = null, ISmartContractTransactionService smartContractTransactionService = null, ILocalExecutor localExecutor = null)
        {
            Guard.NotNull(loggerFactory, nameof(loggerFactory));
            this.logger             = loggerFactory.CreateLogger(this.GetType().FullName);
            this.addressIndexer     = Guard.NotNull(addressIndexer, nameof(addressIndexer));
            this.blockStore         = Guard.NotNull(blockStore, nameof(blockStore));
            this.chainState         = Guard.NotNull(chainState, nameof(chainState));
            this.network            = Guard.NotNull(network, nameof(network));
            this.coinView           = Guard.NotNull(coinView, nameof(coinView));
            this.walletController   = Guard.NotNull(walletController, nameof(walletController));
            this.chainIndexer       = Guard.NotNull(chainIndexer, nameof(chainIndexer));
            this.stakeChain         = stakeChain;
            this.NFTTransferIndexer = NFTTransferIndexer;

            this.primitiveSerializer             = primitiveSerializer;
            this.stateRoot                       = stateRoot;
            this.contractAssemblyCache           = contractAssemblyCache;
            this.receiptRepository               = receiptRepository;
            this.smartContractTransactionService = smartContractTransactionService;
            this.localExecutor                   = localExecutor;
        }
 public ReceiptSearcher(ChainIndexer chainIndexer, IBlockStore blockStore, IReceiptRepository receiptRepository, Network network)
 {
     this.chainIndexer      = chainIndexer;
     this.blockStore        = blockStore;
     this.receiptRepository = receiptRepository;
     this.network           = network;
     this.matcher           = new ReceiptMatcher();
 }
Example #19
0
 public DepositReportService(IDepositDetailsRepository depositRepository, IReceiptRepository receiptRepository,
                             IConsumerSessionRepository sessionRepository, ITimestamper timestamper)
 {
     _depositRepository = depositRepository;
     _receiptRepository = receiptRepository;
     _sessionRepository = sessionRepository;
     _timestamper       = timestamper;
 }
 public DocumentReportService(IMainOrderRepository mainOrderRepository, IDispatchNoteRepository dispatchNoteRepository, IOrderRepository orderRepository, IInvoiceRepository invoiceRepository, IReceiptRepository receiptRepository, ICostCentreRepository costCentreRepository)
 {
     _mainOrderRepository = mainOrderRepository;
     _dispatchNoteRepository = dispatchNoteRepository;
     _orderRepository = orderRepository;
     _invoiceRepository = invoiceRepository;
     _receiptRepository = receiptRepository;
     _costCentreRepository = costCentreRepository;
 }
Example #21
0
        public void ReceiptCreateView()
        {
            _repository = new ReceiptRepository(new LibContext());
            // Act
            var result = _repository.ReceiptCreateView();

            // Assert
            Assert.IsNotNull(result);
        }
Example #22
0
 public CartRepository(ILog log, IDbConnection db, IExceptionManager exception, IReceiptRepository receiptRepository, ICryptoGraphy cryptoGraphy, IAccessTokenRepository user)
 {
     _log               = log;
     _db                = db;
     _exception         = exception;
     _receiptRepository = receiptRepository;
     _cryptoGraphy      = cryptoGraphy;
     _user              = user;
 }
Example #23
0
        public void PageReceipt()
        {
            _repository = new ReceiptRepository(new LibContext());
            // Act
            var result = _repository.PageReceipt(1);

            // Assert
            Assert.IsNotNull(result.Elems);
        }
Example #24
0
        public void OverdueReceipt()
        {
            _repository = new ReceiptRepository(new LibContext());
            // Act
            var result = _repository.OverdueReceipt(1);

            // Assert
            Assert.IsNotNull(result);
        }
Example #25
0
 public SmartContractPosCoinviewRule(Network network, IStateRepositoryRoot stateRepositoryRoot,
                                     IContractExecutorFactory executorFactory, ICallDataSerializer callDataSerializer,
                                     ISenderRetriever senderRetriever, IReceiptRepository receiptRepository, ICoinView coinView,
                                     IStakeChain stakeChain, IStakeValidator stakeValidator)
     : base(network, stateRepositoryRoot, executorFactory, callDataSerializer, senderRetriever, receiptRepository, coinView)
 {
     this.consensus      = network.Consensus;
     this.stakeChain     = stakeChain;
     this.stakeValidator = stakeValidator;
 }
Example #26
0
 public ShiftService(IShiftRepository shiftRepository, IMapper mapper,
                     IManageCashRepository manageCashRepository, IUserRepository userRepository,
                     IReceiptRepository receiptRepository)
 {
     _shiftRepository      = shiftRepository;
     _manageCashRepository = manageCashRepository;
     _receiptRepository    = receiptRepository;
     _userRepository       = userRepository;
     _mapper = mapper;
 }
Example #27
0
 public BudgetReceiptAppService(
     IBudgetReceiptRepository budgetReceiptRepository,
     ISysDictionaryRepository sysDictionaryRepository,
     IBudgetOutlayRepository budgetOutlayRepository,
     ILayerRepository layerRepository,
     IReceiptRepository receiptRepository)
 {
     this._budgetReceiptRepository = budgetReceiptRepository;
     this._sysDictionaryRepository = sysDictionaryRepository;
     this._budgetOutlayRepository  = budgetOutlayRepository;
     this._layerRepository         = layerRepository;
     this._receiptRepository       = receiptRepository;
 }
Example #28
0
        public UnitOfWork(OrderSystemContext context)
        {
            this.context                = context;
            this.CustomerRepository     = new CustomerRepository(this.context);
            this.EmployeeRepository     = new EmployeeRepository(this.context);
            this.PropositionRepository  = new PropositionRepository(this.context);
            this.EquipmentRepository    = new EquipmentRepository(this.context);
            this.VisitRepository        = new VisitRepository(this.context);
            this.SalesmanListRepository = new SalesmanListRepository(this.context);
            this.ReceiptRepository      = new ReceiptRepository(this.context);

            context.Database.EnsureCreated();
        }
Example #29
0
 public SmartContractPoACoinviewRule(
     IStateRepositoryRoot stateRepositoryRoot,
     IContractExecutorFactory executorFactory,
     ICallDataSerializer callDataSerializer,
     ISenderRetriever senderRetriever,
     IReceiptRepository receiptRepository,
     ICoinView coinView)
 {
     this.stateRepositoryRoot = stateRepositoryRoot;
     this.executorFactory     = executorFactory;
     this.callDataSerializer  = callDataSerializer;
     this.senderRetriever     = senderRetriever;
     this.receiptRepository   = receiptRepository;
     this.coinView            = coinView;
 }
 public CommandRoutingResolver(ICommandRoutingRepository commandRoutingRepository, ICostCentreApplicationRepository costCentreApplicationRepository, IOrderRepository orderRepository, IInventoryAdjustmentNoteRepository inventoryAdjustmentNoteRepository, IInventoryTransferNoteRepository inventoryTransferNoteRepository, IDispatchNoteRepository dispatchNoteRepository, IProducerRepository producerRepository, IInventoryReceivedNoteRepository inventoryReceivedNoteRepository, IReceiptRepository receiptRepository, IDisbursementNoteRepository disbursementNoteRepository, IReturnsNoteRepository returnsNoteRepository, IInvoiceRepository invoiceRepository)
 {
     _commandRoutingRepository = commandRoutingRepository;
     _costCentreApplicationRepository = costCentreApplicationRepository;
     _orderRepository = orderRepository;
     _inventoryAdjustmentNoteRepository = inventoryAdjustmentNoteRepository;
     _inventoryTransferNoteRepository = inventoryTransferNoteRepository;
     _dispatchNoteRepository = dispatchNoteRepository;
     _producerRepository = producerRepository;
     _inventoryReceivedNoteRepository = inventoryReceivedNoteRepository;
     _receiptRepository = receiptRepository;
     _disbursementNoteRepository = disbursementNoteRepository;
     _returnsNoteRepository = returnsNoteRepository;
     _invoiceRepository = invoiceRepository;
 }
Example #31
0
 public EntityUsage(List<Order> salesmanOrders, ITargetRepository targetRepository, IInventoryRepository inventoryRepository, IOrderRepository orderRepository, 
     IInvoiceRepository invoiceRepository, IReceiptRepository receiptRepository, ICreditNoteRepository creditNoteRepository,
     IDispatchNoteRepository dispatchNoteRepository
     )
 {
     _dispatchNoteRepository = dispatchNoteRepository;
     _salesmanOrders = salesmanOrders;
     _targetRepository = targetRepository;
     _inventoryRepository = inventoryRepository;
     _orderRepository = orderRepository;
     _invoiceRepository = invoiceRepository;
     _receiptRepository = receiptRepository;
     _creditNoteRepository = creditNoteRepository;
     OrderPaymentInfos = new List<InvoicePaymentInfo>();
 }
 protected SmartContractCoinviewRule(Network network,
                                     IStateRepositoryRoot stateRepositoryRoot,
                                     IContractExecutorFactory executorFactory,
                                     ICallDataSerializer callDataSerializer,
                                     ISenderRetriever senderRetriever,
                                     IReceiptRepository receiptRepository,
                                     ICoinView coinView)
 {
     this.network             = network;
     this.stateRepositoryRoot = stateRepositoryRoot;
     this.executorFactory     = executorFactory;
     this.callDataSerializer  = callDataSerializer;
     this.senderRetriever     = senderRetriever;
     this.receiptRepository   = receiptRepository;
     this.coinView            = coinView;
 }
 public ShowDocumentController(IGenericDocumentRepository genericDocumentRepository, IOrderRepository orderRepository, IDispatchNoteRepository dispatchNoteRepository, IInventoryReceivedNoteRepository inventoryReceivedNoteRepository, IInvoiceRepository invoiceRepository, IReturnsNoteRepository returnsNoteRepository, IReceiptRepository receiptRepository, IInventoryAdjustmentNoteRepository inventoryAdjustmentNoteRepository, ICreditNoteRepository creditNoteRepository, IDisbursementNoteRepository disbursementNoteRepository, IPaymentNoteRepository paymentNoteRepository, ICommodityPurchaseRepository commodityPurchaseRepository, IInventoryTransferNoteRepository inventoryTransferNoteRepository)
 {
     _genericDocumentRepository = genericDocumentRepository;
     _orderRepository = orderRepository;
     _dispatchNoteRepository = dispatchNoteRepository;
     _inventoryReceivedNoteRepository = inventoryReceivedNoteRepository;
     _invoiceRepository = invoiceRepository;
     _returnsNoteRepository = returnsNoteRepository;
     _receiptRepository = receiptRepository;
     _inventoryAdjustmentNoteRepository = inventoryAdjustmentNoteRepository;
     _creditNoteRepository = creditNoteRepository;
     _disbursementNoteRepository = disbursementNoteRepository;
     _paymentNoteRepository = paymentNoteRepository;
     _commodityPurchaseRepository = commodityPurchaseRepository;
     _inventoryTransferNoteRepository = inventoryTransferNoteRepository;
 }
 public SignedContractPoARuleRegistration(Network network,
                                          IStateRepositoryRoot stateRepositoryRoot,
                                          IContractExecutorFactory executorFactory,
                                          ICallDataSerializer callDataSerializer,
                                          ISenderRetriever senderRetriever,
                                          IReceiptRepository receiptRepository,
                                          ICoinView coinView)
 {
     this.network             = network;
     this.stateRepositoryRoot = stateRepositoryRoot;
     this.executorFactory     = executorFactory;
     this.callDataSerializer  = callDataSerializer;
     this.senderRetriever     = senderRetriever;
     this.receiptRepository   = receiptRepository;
     this.coinView            = coinView;
 }
 public SmartContractCoinViewRuleLogic(IStateRepositoryRoot stateRepositoryRoot,
                                       IContractExecutorFactory executorFactory,
                                       ICallDataSerializer callDataSerializer,
                                       ISenderRetriever senderRetriever,
                                       IReceiptRepository receiptRepository,
                                       ICoinView coinView)
 {
     this.stateRepositoryRoot = stateRepositoryRoot;
     this.executorFactory     = executorFactory;
     this.callDataSerializer  = callDataSerializer;
     this.senderRetriever     = senderRetriever;
     this.receiptRepository   = receiptRepository;
     this.coinView            = coinView;
     this.refundCounter       = 1;
     this.blockTxsProcessed   = new List <Transaction>();
     this.receipts            = new List <Receipt>();
 }
Example #36
0
 public void Setup()
 {
     _depositProvider         = Substitute.For <IDepositProvider>();
     _providerService         = Substitute.For <IProviderService>();
     _receiptRequestValidator = Substitute.For <IReceiptRequestValidator>();
     _sessionService          = Substitute.For <ISessionService>();
     _receiptRepository       = Substitute.For <IReceiptRepository>();
     _sessionRepository       = Substitute.For <IConsumerSessionRepository>();
     _abiEncoder     = Substitute.For <IAbiEncoder>();
     _wallet         = Substitute.For <IWallet>();
     _ecdsa          = Substitute.For <IEthereumEcdsa>();
     _timestamper    = Timestamper.Default;
     _nodePublicKey  = TestItem.PublicKeyA;
     _receiptService = new ReceiptService(_depositProvider, _providerService, _receiptRequestValidator,
                                          _sessionService, _timestamper, _receiptRepository, _sessionRepository, _abiEncoder, _wallet,
                                          _ecdsa, _nodePublicKey, LimboLogs.Instance);
 }
 public RetireDocumentWFManager(IOutgoingDocumentCommandRouter commandRouter, IRetireDocumentSettingRepository retireSettingRepository, IOrderRepository orderService, 
     IInvoiceRepository invoiceService, IReceiptRepository receiptService, ICreditNoteRepository creditNoteService, IDispatchNoteRepository dispatchNoteService, 
     IInventoryAdjustmentNoteRepository inventoryAdjustmentNoteService, IInventoryTransferNoteRepository inventoryTransferNoteService, 
     IInventoryReceivedNoteRepository inventoryReceivedNoteService, IReturnsNoteRepository returnsNoteService)
 {
     _commandRouter = commandRouter;
     _retireSettingRepository = retireSettingRepository;
     _orderService = orderService;
     _invoiceService = invoiceService;
     _receiptService = receiptService;
     _creditNoteService = creditNoteService;
     _dispatchNoteService = dispatchNoteService;
     _inventoryAdjustmentNoteService = inventoryAdjustmentNoteService;
     _inventoryTransferNoteService = inventoryTransferNoteService;
     _inventoryReceivedNoteService = inventoryReceivedNoteService;
     _returnsNoteService = returnsNoteService;
 }
 public GetDocumentReference(IReceiptRepository receiptService, IInvoiceRepository invoiceService, ICostCentreRepository costCentreService, IDispatchNoteRepository dispatchNoteService, IDisbursementNoteRepository disbursementNoteService, IInventoryTransferNoteRepository inventoryTransferNoteService, ICreditNoteRepository creditNoteService, IOrderRepository orderService, IReturnsNoteRepository returnsNoteService, ICommodityPurchaseRepository commodityPurchaseRepository, ICommodityReceptionRepository commodityReceptionRepository, ICommodityStorageRepository commodityStorageRepository, ISettingsRepository settingsRepository, ICommodityWarehouseStorageRepository commodityWarehouseStorageRepository, ICommodityReleaseRepository commodityReleaseRepository)
 {
     _receiptService = receiptService;
     _invoiceService = invoiceService;
     _costCentreService = costCentreService;
     
     _dispatchNoteService = dispatchNoteService;
     _disbursementNoteService = disbursementNoteService;
     _inventoryTransferNoteService = inventoryTransferNoteService;
     _creditNoteService = creditNoteService;
     _orderService = orderService;
     _returnsNoteService = returnsNoteService;
     _commodityPurchaseRepository = commodityPurchaseRepository;
     _commodityReceptionRepository = commodityReceptionRepository;
     _commodityStorageRepository = commodityStorageRepository;
     _settingsRepository = settingsRepository;
     _commodityWarehouseStorageRepository = commodityWarehouseStorageRepository;
     _commodityReleaseRepository = commodityReleaseRepository;
 }
 public ScenarioTestHelperServer(IReceiptRepository receiptRepository)
 {
     _receiptRepository = receiptRepository;
 }
 public ReceiptService(IReceiptRepository receiptRepository)
 {
     _receiptRepository = receiptRepository;
 }
Example #41
0
 public ReceiptsActionView(IReceiptRepository receiptRepository)
 {
     _receiptRepository = receiptRepository;
 }
 public ScenarioTestHelperLocal(ICostCentreRepository costCentreRepository, IUserRepository userRepository, IConfigService configService, IOutgoingCommandEnvelopeQueueRepository outgoingCommandEnvelopeQueueRepository, IReceiptRepository receiptRepository, IReceiptFactory receiptFactory, IReceiptWorkFlowManager receiptWorkFlowManager, ISendPendingEnvelopeCommandsService sendPendingEnvelopeCommandsService)
 {
     _costCentreRepository = costCentreRepository;
     _userRepository = userRepository;
     _configService = configService;
     _outgoingCommandEnvelopeQueueRepository = outgoingCommandEnvelopeQueueRepository;
     _receiptRepository = receiptRepository;
     _receiptFactory = receiptFactory;
     _receiptWorkFlowManager = receiptWorkFlowManager;
     _sendPendingEnvelopeCommandsService = sendPendingEnvelopeCommandsService;
 }
 public AddReceiptLineItemCommandHandler(IReceiptRepository documentRepository)
 {
     _documentRepository = documentRepository;
 }
Example #44
0
 public ReceiptEntityForm(IReceiptRepository receiptRepository)
 {
     _receiptRepository = receiptRepository;
     InitializeComponent();
     this.Load += ReceiptEntityForm_Load;
 }
 public ConfirmReceiptLineItemCommandHandler(IReceiptRepository documentRepository, CokeDataContext context)
     :base(context)
 {
     _documentRepository = documentRepository;
 }
 public ReceiptService(IReceiptRepository repo)
 {
     this.repository = repo;
 }