Пример #1
0
 public IQuotationService GetQuotationService(IQuotationService inject)
 {
     if (inject != null){
         _quotationService = inject;
     }
     return _quotationService;
 }
Пример #2
0
 public QuotationsController(IQuotationService quotationService, ICustomerService customerService, IProductService productService, ITaxService taxService)
 {
     this.quotationService = quotationService;
     this.customerService  = customerService;
     this.productService   = productService;
     this.taxService       = taxService;
 }
Пример #3
0
 public QuotationController(IBookService bookService, IBookAppUserService bookAppUserService, UserManager <AppUser> userManager, IQuotationService quotationService)
 {
     _bookService        = bookService;
     _bookAppUserService = bookAppUserService;
     _userManager        = userManager;
     _quotationService   = quotationService;
 }
Пример #4
0
 public HomeController(IQuotationService quotationService, IInformationService informationService, IBookCategoryService bookCategoryService, IBookService bookService)
 {
     this._quotationService    = quotationService;
     this._informationService  = informationService;
     this._bookCategoryService = bookCategoryService;
     this._bookService         = bookService;
 }
Пример #5
0
 //auto-wired by asp startup
 public QuotationsController(IQuotationService service, IMapper mapper, ILogger <QuotationsController> logger) :
     base(service, mapper, logger)
 {
     _service = service;
     _mapper  = mapper;
     _logger  = logger;
 }
Пример #6
0
 public Right(ICommentService commentService, IQuotationService quotationService, IAppUserService appUserService, IBookService bookService)
 {
     _commentService   = commentService;
     _quotationService = quotationService;
     _appUserService   = appUserService;
     _bookService      = bookService;
 }
Пример #7
0
 public QuotationItemAppService(IQuotationService QuotationService, IQuotationItemService QuotationItemService, IMediatorHandler bus
                                , INotificationHandler <DomainNotification> notifications)
 {
     _service = QuotationService;
     _quotationItemService = QuotationItemService;
     Bus            = bus;
     _notifications = (DomainNotificationHandler)notifications;
 }
Пример #8
0
 public QuotationController(IQuotationService quotationService, IUserService userService, IRoleService roleService, IAttachmentService attachmentService, IOptions <AppSettings> appSettings)
 {
     this.quotationService  = quotationService;
     this.userService       = userService;
     this.roleService       = roleService;
     this.attachmentService = attachmentService;
     this._appSettings      = appSettings.Value;
 }
Пример #9
0
 public QuotationController(IQuotationService quotationService, ITypeEbookService typeEbookService, IUserService userService, IAuthorService authorService, IBookCategoryService bookCategoryService, IBookService bookService, IEbookService ebookService)
 {
     this._authorService       = authorService;
     this._quotationService    = quotationService;
     this._bookCategoryService = bookCategoryService;
     this._bookService         = bookService;
     this._ebookService        = ebookService;
     this._userService         = userService;
     this._typeEbookService    = typeEbookService;
 }
Пример #10
0
 public QuotationController(ILogger <ExchangeRatesController> logger,
                            IQuotationService quotationService,
                            IExchangeRateService exchangeRateService,
                            ISegmentTaxService segmentTaxService)
 {
     _logger         = logger;
     QuotationSvc    = quotationService;
     ExchangeRateSvc = exchangeRateService;
     SegmentTaxSvc   = segmentTaxService;
 }
Пример #11
0
        public CurrencyQuotationServiceFactory(IQuotationService quotationService)
        {
            _quotationService = quotationService;

            _currencyQuotationServiceDict = new Dictionary <string, ICurrencyQuotation>()
            {
                { "dolar", new DolarQuotationService(_quotationService) },
                { "euro", new EuroQuotationService(_quotationService) },
                { "real", new RealQuotationService(_quotationService) }
            };
        }
Пример #12
0
        private static void DisplayQuotationsByExchange()
        {
            Console.WriteLine("Displaying Quotations by Exchange code.");
            string exchange = ConsoleEx.AskInput <string>("Enter the exchange code: "); //NYSE

            IQuotationService srv = ServiceLocator.Current.GetInstance <IQuotationService>();
            var quotations        = srv.GetQuotations(exchange, string.Empty, DateTime.Now, DateTime.Now);

            quotations.ForEach(ConsoleEx.WriteEntity);

            ConsoleWriteSeparator();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            _currentContext   = EngineContext.Current.Resolve <IWorkContext>();
            _quotationService = EngineContext.Current.Resolve <IQuotationService>();
            _hmContext        = EngineContext.Current.Resolve <HotelManagementEntities>();

            var que = _hmContext.trn_QuotationDetails.AsQueryable().AsNoTracking();

            if (!Page.IsPostBack)
            {
                PopulateGrid(que);
            }
        }
Пример #14
0
 public DashboardController(IUtilityService utilityservice, IUserCredentialService usercredentialservice, IModuleService iIModuleService, IPurchaseOrderDetailService IPurchaseOrderDetailService, IOutwardToShopService OutwardToShopService, IOutwardToClientService IOutwardToClientService, IShopStockService IShopStockService,
                            IGodownStockService GodownStockService, IStockItemDistributionService IStockItemDistributionService, IRetailBillService IRetailInvoiceMasterService, ISalesBillService ISalesBillService, IEmployeeMasterService EmployeeMasterService, IEntryStockItemService EntryStockItemService,
                            IQuotationService QuotationService, ISalesOrderService SalesOrderService, IDeliveryChallanService DeliveryChallanService, IInwardFromGodownService InwardFromGodownService, IInwardFromShopToGodownService InwardFromShopToGodownService, IInwardInterGodownService InwardInterGodownService, IInwardInterShopService InwardInterShopService,
                            IRequisitionForShopService RequisitionForShopService, IRequisitionForGodownService RequisitionForGodownService, IOutwardShopToGodownService OutwardShopToGodownService, IOutwardInterGodownService OutwardInterGodownService, IOutwardInterShopService OutwardInterShopService, ISalesReturnService SalesReturnService,
                            IPurchaseReturnService PurchaseReturnService, IInwardFromSupplierService InwardFromSupplierService, ICashierSalesOrderService CashierSalesOrderService, ICashierRetailBillService CashierRetailBillService, ICashierTemporaryCashMemoService CashierTemporaryCashMemoService, ICashierSalesBillService CashierSalesBillService,
                            ICashierRefundOrderService CashierRefundOrderService, ICashHandoverService CashHandoverService, ICardChequeHandoverService CardChequeHandoverService, IIncomeExpenseVoucherService IncomeExchangeVoucherService)
 {
     this._IUserCredentialService          = usercredentialservice;
     this._iIModuleService                 = iIModuleService;
     this._IPurchaseOrderDetailService     = IPurchaseOrderDetailService;
     this._IOutwardToClientService         = IOutwardToClientService;
     this._EntryStockItemService           = EntryStockItemService;
     this._IShopStockService               = IShopStockService;
     this._GodownStockService              = GodownStockService;
     this._IStockItemDistributionService   = IStockItemDistributionService;
     this._IRetailInvoiceMasterService     = IRetailInvoiceMasterService;
     this._ISalesBillService               = ISalesBillService;
     this._EmployeeMasterService           = EmployeeMasterService;
     this._QuotationService                = QuotationService;
     this._SalesOrderService               = SalesOrderService;
     this._DeliveryChallanService          = DeliveryChallanService;
     this._RequisitionForShopService       = RequisitionForShopService;
     this._RequisitionForGodownService     = RequisitionForGodownService;
     this._OutwardToShopService            = OutwardToShopService;
     this._OutwardShopToGodownService      = OutwardShopToGodownService;
     this._OutwardInterGodownService       = OutwardInterGodownService;
     this._OutwardInterShopService         = OutwardInterShopService;
     this._InwardFromGodownService         = InwardFromGodownService;
     this._InwardFromShopToGodownService   = InwardFromShopToGodownService;
     this._InwardInterGodownService        = InwardInterGodownService;
     this._InwardInterShopService          = InwardInterShopService;
     this._SalesReturnService              = SalesReturnService;
     this._PurchaseReturnService           = PurchaseReturnService;
     this._InwardFromSupplierService       = InwardFromSupplierService;
     this._CashierSalesOrderService        = CashierSalesOrderService;
     this._CashierRetailBillService        = CashierRetailBillService;
     this._CashierTemporaryCashMemoService = CashierTemporaryCashMemoService;
     this._CashierSalesBillService         = CashierSalesBillService;
     this._CashierRefundOrderService       = CashierRefundOrderService;
     this._CashHandoverService             = CashHandoverService;
     this._CardChequeHandoverService       = CardChequeHandoverService;
     this._IncomeExchangeVoucherService    = IncomeExchangeVoucherService;
 }
Пример #15
0
        public async Task <IActionResult> Quotation(string currency)
        {
            if (currency != null)
            {
                QuotationService  quotation  = null;
                IQuotationService iquotation = QuotationBuilderFactor.GetQuote(currency);
                quotation = new QuotationService(iquotation);
                var json = await quotation.Quote();

                JObject rss = JObject.Parse(json);

                JObject result = (JObject)rss["result"];

                result.Property("updated").Remove();
                result.Property("target").Remove();
                result.Property("value").Remove();
                result.Property("quantity").Remove();

                return(Ok(result));
            }

            throw new NotImplementedException("This currency is not supported");
        }
Пример #16
0
 public SimulationService(IDataService dataService)
 {
     _dataService = dataService ?? DataServiceFactory.Instance().GetService();
     quotationService = new SimulationQuotationService(this);
     //_macdAnalyzer = new MacdAnalyzer(this);
 }
Пример #17
0
 public IndexModel(IQuotationService quotationService)
 {
     _quotationService = quotationService;
     Quotation         = _quotationService.GetTodayQuotation().Result;
 }
Пример #18
0
 public void injectQuotationService(IQuotationService instance)
 {
     quotationService = instance;
 }
Пример #19
0
 public QuotationController(IQuotationService quotationService, ILog logger, IVendorService vendorService)
 {
     _quotationService = quotationService;
     _logger           = logger;
     _vendorService    = vendorService;
 }
Пример #20
0
 public QuotationTests()
 {
     _quotationRepository = new Mock <IQuotationRepository>(MockBehavior.Loose);
     _mapper           = new Mock <IMapper>(MockBehavior.Loose);
     _quotationService = new QuotationService(_quotationRepository.Object, _mapper.Object);
 }
 public QuotationController(ILogger <Quotation> logger, IQuotationService service)
     : base(logger, service)
 {
 }
Пример #22
0
 public QuotationsController(IQuotationService quotationService, IQuotationViewModelSelectListBuilder quotationViewModelSelectListBuilder)
     : base(quotationService, quotationViewModelSelectListBuilder, true)
 {
 }
Пример #23
0
 public Analyzer(AssetTimeframe atf, IQuotationService quotationService)
 {
     this.quotationService = quotationService;
     initialize(atf);
 }
Пример #24
0
 private IQuotationService getQuotationService()
 {
     if (quotationService == null)
     {
         quotationService = ProcessServiceFactory.Instance().GetQuotationService();
     }
     return quotationService;
 }
Пример #25
0
 public void injectQuotationService(IQuotationService quotationService)
 {
     this.quotationService = quotationService;
 }
Пример #26
0
 public PortfolioService(IQuotationService quotationService)
 {
     this.quotationService = quotationService;
 }
Пример #27
0
 public QuotationController(IQuotationService quotationService)
 {
     this._quotationService = quotationService;
 }
 public QuotationsControllerTest()
 {
     _service    = new QuotationServiceFake();
     _controller = new QuotationsController(_service);
 }
 public QuotationsController(IQuotationService quotationService)
 {
     _quotationService = quotationService;
 }
Пример #30
0
 public DolarQuotationService(IQuotationService quotationService)
 {
     _quotationService = quotationService;
 }
 public QuotationController(IQuotationService quotationService, IMapper mapper, IQuotationRepository quotationRepository)
 {
     QuotationService    = quotationService;
     QuotationRepository = quotationRepository;
     Mapper = mapper;
 }
Пример #32
0
 public IQuotationService GetQuotationService()
 {
     if (_quotationService == null) _quotationService = new QuotationService();
     return _quotationService;
 }
 public OrderingService(IQuotationService quotationService, IRepository repository)
 {
     this.quotationService = quotationService;
     this.repository       = repository;
 }
 public RealQuotationService(IQuotationService quotationService)
 {
     _quotationService = quotationService;
 }
Пример #35
0
 public QuotationsApiController(IQuotationRepository quotationRepository, IQuotationService quotationService)
 {
     this.quotationRepository = quotationRepository;
     this.quotationService = quotationService;
 }
Пример #36
0
 public QuotationsApiController(IQuotationRepository quotationRepository, IQuotationService quotationService)
 {
     this.quotationRepository = quotationRepository;
     this.quotationService    = quotationService;
 }
 public EuroQuotationService(IQuotationService quotationService)
 {
     _quotationService = quotationService;
 }
Пример #38
0
 public QuotationService(IQuotationService quote)
 {
     this._quote = quote;
 }