public BreezeController(ICommunitiesService communities, IProposalService proposals,
     IInvitationService invitations, ITaxesService taxes)
 {
     this.communities = communities;
     this.proposals = proposals;
     this.invitations = invitations;
     this.taxes = taxes;
 }
Пример #2
0
 public ProposalController(ILogger <ProposalController> logger,
                           IConferenceService conferenceService, IProposalService proposalService,
                           IDataProtectionProvider protectionProvider, PurposeStringConstants purposeStringConstants)
 {
     protector              = protectionProvider.CreateProtector(purposeStringConstants.ConferenceIdQueryString);
     this.logger            = logger;
     this.conferenceService = conferenceService;
     this.proposalService   = proposalService;
 }
        public ProposalApprovalTransactionGenerator(IProposalService proposalService,
                                                    ISmartContractAddressService smartContractAddressService,
                                                    IOptionsMonitor <TransactionPackingOptions> transactionPackingOptions)
        {
            _proposalService             = proposalService;
            _smartContractAddressService = smartContractAddressService;
            _transactionPackingOptions   = transactionPackingOptions.CurrentValue;

            Logger = NullLogger <ProposalApprovalTransactionGenerator> .Instance;
        }
Пример #4
0
 public ProposalController(
     IProposalService proposalService,
     IOrganizationCustomer customer,
     IProposalPDFService proposalPdfService,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _customer           = customer;
     _proposalService    = proposalService;
     _proposalPdfService = proposalPdfService;
 }
Пример #5
0
        public ProposalApprovalTransactionGenerator(IProposalService proposalService,
                                                    ISmartContractAddressService smartContractAddressService,
                                                    ITransactionPackingOptionProvider transactionPackingOptionProvider)
        {
            _proposalService                  = proposalService;
            _smartContractAddressService      = smartContractAddressService;
            _transactionPackingOptionProvider = transactionPackingOptionProvider;

            Logger = NullLogger <ProposalApprovalTransactionGenerator> .Instance;
        }
Пример #6
0
 public ProposalController(
     IAgencyOwner agencyOwner,
     IProposalService proposalService,
     IProviderAgencyOwner providerAgencyOwner,
     IProposalPDFService proposalPdfService,
     IServiceProvider provider) : base(provider)
 {
     _agencyOwner         = agencyOwner;
     _proposalService     = proposalService;
     _providerAgencyOwner = providerAgencyOwner;
     _proposalPdfService  = proposalPdfService;
 }
Пример #7
0
 public ServerService(IUserService userservice, IUserConferenceService userconferenceservice, IAdminConferenceService adminconferenceservice,
                      ITicketService ticketservice, IEmailService emailservice, IProposalService propservice, EnumGetDataService enumservice,
                      IReviewService reviewService, ISectionService sectionService)
 {
     _userService            = userservice;
     _userConferenceService  = userconferenceservice;
     _adminConferenceService = adminconferenceservice;
     _ticketService          = ticketservice;
     _emailService           = emailservice;
     _proposalService        = propservice;
     _enumService            = enumservice;
     _reviewService          = reviewService;
     _sectionService         = sectionService;
 }
        public ServiceResult SaveProposalFile([FromServices] IProposalService proposalService, [FromRoute] int id, [FromBody] ICollection <IFormFile> files)
        {
            var file      = files.FirstOrDefault();
            var totalSize = file.Length;
            var filePath  = Path.GetTempFileName();

            using (var stream = new FileStream(filePath, FileMode.Create)) file.CopyTo(stream);

            var result = proposalService.SaveProposalFile(new SaveProposalFileMessage()
            {
                ProposalID = id,
                FilePath   = filePath,
            });

            return(result);
        }
Пример #9
0
        public async Task InvokeAsync(HttpContext httpContext, IProposalService proposalService)
        {
            try
            {
                if (httpContext.Request.Path.Value == "/Home/GetProposal")
                {
                    var jsonRequestString = await FormatRequest(httpContext.Request);

                    AddProposalLogRequest addLogRequest = JsonConvert.DeserializeObject <AddProposalLogRequest>(jsonRequestString);
                    var addLogResult = await proposalService.Add(addLogRequest);

                    var originalBodyStream = httpContext.Response.Body;

                    using (var responseBody = new MemoryStream())
                    {
                        httpContext.Response.Body = responseBody;

                        await _next(httpContext);

                        var jsonResponseString = await FormatResponse(httpContext.Response);

                        var response         = JsonConvert.DeserializeObject <GetProposalResponse>(jsonResponseString);
                        var updateLogRequest = new UpdateProposalLogRequest
                        {
                            Id       = addLogResult.Data.Id,
                            Response = JsonConvert.SerializeObject(response)
                        };
                        await proposalService.Update(updateLogRequest);

                        await responseBody.CopyToAsync(originalBodyStream);
                    }
                }
                else
                {
                    await _next(httpContext);
                }
            }
            catch (Exception e)
            {
                //await HandleExceptionAsync(httpContext, e);
            }
        }
        public ServiceResult GetProposal([FromServices] IProposalService proposalService, int id)
        {
            var result = proposalService.Get(id);

            return(Mapper.Map <ServiceResult <ProposalViewModel> >(result));
        }
        public ServiceResult SaveProposal([FromServices] IProposalService proposalService, SaveProposalRequest request)
        {
            var message = Mapper.Map <SaveProposalMessage>(request);

            return(proposalService.Save(message));
        }
 public ProposalsController(IProposalService proposalService, IMappingService mappingService, ICommunitiesService communityService)
 {
     this.proposalService = proposalService;
     this.mappingService = mappingService;
     this.communityService = communityService;
 }
Пример #13
0
 public ProposalController(IConferenceService conferenceService, IProposalService proposalService)
 {
     _conferenceService = conferenceService;
     _proposalService   = proposalService;
 }
Пример #14
0
 public AddProposalModel(IProposalService proposalService)
 {
     this.proposalService = proposalService;
 }
 public NewIrreversibleBlockFoundEventHandler(IProposalService proposalService)
 {
     _proposalService = proposalService;
 }
 public ProposalsController(IProposalService proposalService)
 {
     this.proposalService = proposalService;
 }
Пример #17
0
 public void SetPaperService(IProposalService service)
 {
     _proposalService = service;
 }
Пример #18
0
 public ProposalListModel(IProposalService proposalService)
 {
     this.proposalService = proposalService;
 }
 public ProposalsController(IEmployerService employerService, IProposalService proposalService, IMapper mapper)
 {
     _employerService = employerService;
     _proposalService = proposalService;
     _mapper          = mapper;
 }
Пример #20
0
 public ProposalController(IProposalService IproposalService)
 {
     _iProposalService = IproposalService;
 }
Пример #21
0
 public ProposalsController(IProposalService proposalService, IClientService clientService)
 {
     _proposalService = proposalService;
     _clientService   = clientService;
 }
Пример #22
0
 public ProposalServiceTests()
 {
     _proposalService    = GetRequiredService <IProposalService>();
     _proposalTestHelper = GetRequiredService <ProposalTestHelper>();
 }
        public ServiceResult DeleteProposal([FromServices] IProposalService proposalService, int id)
        {
            var result = proposalService.Delete(id);

            return(result);
        }
Пример #24
0
 public ConceptController(IProposalService proposalService)
 {
     _proposalService = proposalService;
 }
Пример #25
0
 public UserController(IUserService userService, IJobService jobService, IProposalService proposalService)
 {
     this.userService     = userService;
     this.jobService      = this.jobService = jobService;
     this.proposalService = proposalService;
 }
Пример #26
0
 public ProposalController(IConferenceService conferenceService,
                           IProposalService proposalService)
 {
     this.conferenceService = conferenceService;
     this.proposalService   = proposalService;
 }
Пример #27
0
 public ProposalController(IConferenceService conferenceService, IProposalService proposalService, IDataProtectionProvider dataProtProvider, PurposeKeys purposeKeys)
 {
     _dataProtector         = dataProtProvider.CreateProtector(purposeKeys.ConferenceIdKey);
     this.conferenceService = conferenceService;
     this.proposalService   = proposalService;
 }
 public ProposalsController(IMapper mapper, IProposalService proposalService)
 {
     this.mapper          = mapper;
     this.proposalService = proposalService;
 }
 public CrossChainIndexingDataProposedLogEventProcessor(ISmartContractAddressService smartContractAddressService,
                                                        ICrossChainIndexingDataValidationService crossChainIndexingDataValidationService, IProposalService proposalService)
 {
     _smartContractAddressService             = smartContractAddressService;
     _crossChainIndexingDataValidationService = crossChainIndexingDataValidationService;
     _proposalService = proposalService;
 }
Пример #30
0
 public ProposalController(IProposalService proposalService)
 {
     _proposalService = proposalService;
 }
Пример #31
0
 public void SetUp()
 {
     _service = new ProposalService(AutoMapperConfig.Initialize());
 }
Пример #32
0
 public ProposalsController(IProposalService proposalService)
 {
     this.proposalService = proposalService;
 }
Пример #33
0
 public CodeCheckRequiredLogEventProcessor(ISmartContractAddressService smartContractAddressService,
                                           ICodeCheckService codeCheckService, IProposalService proposalService)
 {
     _smartContractAddressService = smartContractAddressService;
     _codeCheckService            = codeCheckService;
     _proposalService             = proposalService;
 }