Exemplo n.º 1
0
 public AgreementController(IAgreementRepository repo, ICustomerRepository customerRepo, ITransactionRepository transactionRepo, IMapper mapper)
 {
     this._agreementRepo   = repo;
     this._customerRepo    = customerRepo;
     this._transactionRepo = transactionRepo;
     this._mapper          = mapper;
 }
 public CreateActivityOperation(
     IAgreementRepository agreementRepo,
     IActivityRepository activityRepo,
     IDictionary <string, BlockingCollection <ActivityProviderEvent> > providerEventQueues)
     : base(agreementRepo, activityRepo, providerEventQueues, null)
 {
 }
 public AgreementController(
     IBus bus,
     IAgreementRepository agreementRepository)
 {
     _bus = bus;
     _agreementRepository = agreementRepository;
 }
 public GetExecBatchResultsOperation(
     IAgreementRepository agreementRepo,
     IActivityRepository activityRepo,
     IDictionary <string, BlockingCollection <ActivityRequestorEvent> > exeBatchQueues)
     : base(agreementRepo, activityRepo, null, exeBatchQueues)
 {
 }
 public AgreementController(
     IBus bus,
     IAgreementRepository agreementRepository)
 {
     _bus = bus;
     _agreementRepository = agreementRepository;
 }
 public CancelAgreementHandler(
     IBus bus,
     IAgreementRepository agreementRepository)
 {
     _bus = bus;
     _agreementRepository = agreementRepository;
 }
 public SendActivityStateDetailsOperation(
     IAgreementRepository agreementRepo,
     IActivityRepository activityRepo,
     IDictionary <string, BlockingCollection <ActivityRequestorEvent> > activityStateQueues)
     : base(agreementRepo, activityRepo, null, null)
 {
     this.ActivityStateQueues = activityStateQueues;
 }
 public InMemoryMarketProcessor(ISubscriptionRepository subscriptionRepository,
                                IProposalRepository proposalRepository,
                                IAgreementRepository agreementRepository)
 {
     this.SubscriptionRepository = subscriptionRepository;
     this.ProposalRepository     = proposalRepository;
     this.AgreementRepository    = agreementRepository;
 }
Exemplo n.º 9
0
 public AgreementServices(IAgreementRepository agreementRepository)
 {
     if (agreementRepository == null)
     {
         throw new ArgumentNullException("AgreementRepository");
     }
     _AgreementRepository = agreementRepository;
 }
Exemplo n.º 10
0
 public GetOperation(
     IAgreementRepository agreementRepo,
     IActivityRepository activityRepo,
     IDictionary <string, BlockingCollection <ActivityProviderEvent> > providerEventQueues,
     IDictionary <string, BlockingCollection <ActivityRequestorEvent> > activityEventQueues)
     : base(agreementRepo, activityRepo, providerEventQueues, null, activityEventQueues)
 {
 }
Exemplo n.º 11
0
 public AgreementPageController(
     IAgreementRepository agreementRepository,
     IUserManagementService usersManagementService,
     TicketProvider ticketProvider,
     IUserManagementService userManager) : base(userManager)
 {
     _agreementRepository = agreementRepository;
 }
Exemplo n.º 12
0
 public ActivityControlApiController(IRequestorActivityProcessor activityProcessor,
                                     IAgreementRepository agreementRepository,
                                     IActivityRepository activityRepository,
                                     ExeScriptMapper exeScriptMapper)
 {
     this.ActivityProcessor   = activityProcessor;
     this.AgreementRepository = agreementRepository;
     this.ActivityRepository  = activityRepository;
     this.ExeScriptMapper     = exeScriptMapper;
 }
Exemplo n.º 13
0
 public WeighInPageController(
     IWeighInRepository weighInRepo,
     IAgreementRepository agreementRepo,
     IUserManagementService userManager,
     TicketProvider ticketProvider) : base(userManager)
 {
     _weighInRepository   = weighInRepo;
     _agreementRepository = agreementRepo;
     _ticket = ticketProvider.GetTicket();
 }
 public CreateAgreementOperation(ISubscriptionRepository subscriptionRepo,
                                 IProposalRepository proposalRepo,
                                 IAgreementRepository agreementRepo,
                                 IDictionary <string, SubscriptionPipeline <DemandSubscription, MarketRequestorEvent> > requestorEventPipelines,
                                 IDictionary <string, string> demandSubscriptions,
                                 IDictionary <string, SubscriptionPipeline <OfferSubscription, MarketProviderEvent> > providerEventPipelines,
                                 IDictionary <string, string> offerSubscriptions)
     : base(subscriptionRepo, proposalRepo, agreementRepo, requestorEventPipelines, demandSubscriptions, providerEventPipelines, offerSubscriptions)
 {
 }
Exemplo n.º 15
0
 public SQLUnitOfWork(IClientsRepository ClientsRepository, IAgreementRepository AgreementRepository,
                      IAgreementDetailsRepository AgreementDetailsRepository, IProductsRepository ProductsRepository,
                      EFTestContext context)
 {
     _ClientsRepository          = ClientsRepository;
     _AgreementRepository        = AgreementRepository;
     _AgreementDetailsRepository = AgreementDetailsRepository;
     _ProductsRepository         = ProductsRepository;
     _context = context;
 }
Exemplo n.º 16
0
 public AgreementServices(IAgreementRepository agreementRepository,
     IAgreementTypeRepository agreementTypeRepository,
     IAgreementStatusRepository agreementStatusRepository,
     IUnitOfWork unitOfWork)
 {
     _agreementRepository = agreementRepository;
     _agreementTypeRepository = agreementTypeRepository;
     _agreementStatusRepository = agreementStatusRepository;
     _unitOfWork = unitOfWork;
 }
        //public static ILogger Logger;

        public RatesCalculationSerivce(IChangedRateImpactEvaluator impactEvaluator, IAgreementRepository agreememtRepository, IBaseRateValueExtractor baseRateValueExtractor)
        {
            if (agreememtRepository == null)
            {
                throw new ArgumentNullException("AgreememtRepository");
            }

            _agreememtRepository    = agreememtRepository;
            _impactEvaluator        = impactEvaluator;
            _baseRateValueExtractor = baseRateValueExtractor;
        }
Exemplo n.º 18
0
 public CancelAgreementOperation(ISubscriptionRepository subscriptionRepo,
                                 IProposalRepository proposalRepo,
                                 IAgreementRepository agreementRepo,
                                 IDictionary <string, SubscriptionPipeline <DemandSubscription, MarketRequestorEvent> > requestorEventPipelines,
                                 IDictionary <string, string> demandSubscriptions,
                                 IDictionary <string, SubscriptionPipeline <OfferSubscription, MarketProviderEvent> > providerEventPipelines,
                                 IDictionary <string, string> offerSubscriptions,
                                 IDictionary <string, BlockingCollection <AgreementResultEnum> > agreementResultPipelines)
     : base(subscriptionRepo, proposalRepo, agreementRepo, requestorEventPipelines, demandSubscriptions, providerEventPipelines, offerSubscriptions, agreementResultPipelines)
 {
 }
Exemplo n.º 19
0
 public ActivityProviderGatewayApiController(IProviderActivityProcessor activityProcessor,
                                             IAgreementRepository agreementRepository,
                                             IActivityRepository activityRepository,
                                             ExeScriptMapper exeScriptMapper,
                                             ActivityProviderEventMapper eventMapper)
 {
     this.ActivityProcessor   = activityProcessor;
     this.AgreementRepository = agreementRepository;
     this.ActivityRepository  = activityRepository;
     this.ExeScriptMapper     = exeScriptMapper;
     this.EventMapper         = eventMapper;
 }
 public InMemoryActivityOperationBase(
     IAgreementRepository agreementRepo,
     IActivityRepository activityRepo,
     IDictionary <string, BlockingCollection <ActivityProviderEvent> > providerEventQueues,
     IDictionary <string, BlockingCollection <ActivityRequestorEvent> > exeBatchQueues
     )
 {
     this.AgreementRepository = agreementRepo;
     this.ActivityRepository  = activityRepo;
     this.ProviderEventQueues = providerEventQueues;
     this.ExeBatchQueues      = exeBatchQueues;
 }
 public MarketRequestorApiController(IRequestorMarketProcessor marketProcessor,
                                     ISubscriptionRepository subscriptionRepository,
                                     IProposalRepository proposalRepository,
                                     IAgreementRepository agreementRepository,
                                     MarketRequestorEventMapper requestorEventMapper,
                                     DemandMapper demandMapper,
                                     OfferMapper offerMapper)
 {
     this.MarketProcessor        = marketProcessor;
     this.SubscriptionRepository = subscriptionRepository;
     this.ProposalRepository     = proposalRepository;
     this.AgreementRepository    = agreementRepository;
     this.RequestorEventMapper   = requestorEventMapper;
     this.DemandMapper           = demandMapper;
     this.OfferMapper            = offerMapper;
 }
Exemplo n.º 22
0
 public InMemoryMarketOperationBase(
     ISubscriptionRepository subscriptionRepo,
     IProposalRepository proposalRepo,
     IAgreementRepository agreementRepo,
     IDictionary <string, SubscriptionPipeline <DemandSubscription, MarketRequestorEvent> > requestorEventPipelines,
     IDictionary <string, string> demandSubscriptions,
     IDictionary <string, SubscriptionPipeline <OfferSubscription, MarketProviderEvent> > providerEventPipelines,
     IDictionary <string, string> offerSubscriptions
     )
 {
     this.SubscriptionRepository  = subscriptionRepo;
     this.ProposalRepository      = proposalRepo;
     this.AgreementRepository     = agreementRepo;
     this.RequestorEventPipelines = requestorEventPipelines;
     this.DemandSubscriptions     = demandSubscriptions;
     this.ProviderEventPipelines  = providerEventPipelines;
     this.OfferSubscriptions      = offerSubscriptions;
 }
Exemplo n.º 23
0
 public MarketProviderApiController(IProviderMarketProcessor marketProcessor,
                                    ISubscriptionRepository subscriptionRepository,
                                    IProposalRepository proposalRepository,
                                    IAgreementRepository agreementRepository,
                                    MarketProviderEventMapper providerEventMapper,
                                    OfferMapper offerMapper,
                                    DemandMapper demandMapper,
                                    ILogger <MarketProviderApiController> logger)
 {
     this.MarketProcessor        = marketProcessor;
     this.SubscriptionRepository = subscriptionRepository;
     this.ProposalRepository     = proposalRepository;
     this.AgreementRepository    = agreementRepository;
     this.ProviderEventMapper    = providerEventMapper;
     this.OfferMapper            = offerMapper;
     this.DemandMapper           = demandMapper;
     this._logger = logger;
 }
Exemplo n.º 24
0
 public AgreementController(IAgreementRepository testAgreementRepository)
 {
     this.agreementRepository = testAgreementRepository;
 }
Exemplo n.º 25
0
 public TransactionController(ITransactionRepository repo, IAgreementRepository agrRepo, IMapper mapper)
 {
     this._transactionRepo = repo;
     this._agreementRepo   = agrRepo;
     this._mapper          = mapper;
 }
Exemplo n.º 26
0
 public InMemoryActivityProcessor(IAgreementRepository agreementRepository,
                                  IActivityRepository activityRepository)
 {
     this.AgreementRepository = agreementRepository;
     this.ActivityRepository  = activityRepository;
 }
Exemplo n.º 27
0
 public AgreementController()
 {
     // should be refactored after DI functionality added
     this.agreementRepository = new AgreementRepository();
 }
Exemplo n.º 28
0
 public AgreementService(IAgreementRepository agreementRepository, IOrderAgreementRepository orderAgreementRepository)
 {
     _agreementRepository      = agreementRepository;
     _orderAgreementRepository = orderAgreementRepository;
 }
Exemplo n.º 29
0
 public DraftService(IAgreementRepository agreementRepository, IDraftRepository draftRepository)
 {
     _agreementRepository = agreementRepository;
     _draftRepository     = draftRepository;
 }
Exemplo n.º 30
0
 public BusinessService(IAgreementRepository agreementRepository, IErrorService errorService, IValidatorService validatorService)
 {
     _agreementRepository = agreementRepository;
     _errorService        = errorService;
     _validatorService    = validatorService;
 }
Exemplo n.º 31
0
 public AgreementController(IAgreementRepository testAgreementRepository)
 {
     this.agreementRepository = testAgreementRepository;
 }
Exemplo n.º 32
0
 public AgreementController()
 {
     // should be refactored after DI functionality added
     this.agreementRepository = new AgreementRepository();
 }
Exemplo n.º 33
0
 public OpenAgreementBlockController(IAgreementRepository agreementRepo, IUserManagementService userManager)
 {
     _agreementRepo = agreementRepo;
     _userManager   = userManager;
 }
 public InterestRateService()
 {
     customerRepository  = new CustomerRepository(new DatabaseContext());
     agreementRepository = new AgreementRepository(new DatabaseContext());
 }