コード例 #1
0
ファイル: ProcessServiceFactory.cs プロジェクト: mielk/waluty
 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();
        }
コード例 #13
0
        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
ファイル: SimulationService.cs プロジェクト: mielk/waluty
 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
ファイル: ProcessService.cs プロジェクト: mielk/waluty
 public void injectQuotationService(IQuotationService instance)
 {
     quotationService = instance;
 }
コード例 #19
0
ファイル: QuotationController.cs プロジェクト: NLTDIndia/AMS
 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);
 }
コード例 #21
0
 public QuotationController(ILogger <Quotation> logger, IQuotationService service)
     : base(logger, service)
 {
 }
コード例 #22
0
 public QuotationsController(IQuotationService quotationService, IQuotationViewModelSelectListBuilder quotationViewModelSelectListBuilder)
     : base(quotationService, quotationViewModelSelectListBuilder, true)
 {
 }
コード例 #23
0
ファイル: Analyzer.cs プロジェクト: mielk/waluty
 public Analyzer(AssetTimeframe atf, IQuotationService quotationService)
 {
     this.quotationService = quotationService;
     initialize(atf);
 }
コード例 #24
0
ファイル: Analyzer.cs プロジェクト: mielk/waluty
 private IQuotationService getQuotationService()
 {
     if (quotationService == null)
     {
         quotationService = ProcessServiceFactory.Instance().GetQuotationService();
     }
     return quotationService;
 }
コード例 #25
0
ファイル: Analyzer.cs プロジェクト: mielk/waluty
 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;
 }
コード例 #28
0
 public QuotationsControllerTest()
 {
     _service    = new QuotationServiceFake();
     _controller = new QuotationsController(_service);
 }
コード例 #29
0
 public QuotationsController(IQuotationService quotationService)
 {
     _quotationService = quotationService;
 }
コード例 #30
0
 public DolarQuotationService(IQuotationService quotationService)
 {
     _quotationService = quotationService;
 }
コード例 #31
0
 public QuotationController(IQuotationService quotationService, IMapper mapper, IQuotationRepository quotationRepository)
 {
     QuotationService    = quotationService;
     QuotationRepository = quotationRepository;
     Mapper = mapper;
 }
コード例 #32
0
ファイル: ProcessServiceFactory.cs プロジェクト: mielk/waluty
 public IQuotationService GetQuotationService()
 {
     if (_quotationService == null) _quotationService = new QuotationService();
     return _quotationService;
 }
コード例 #33
0
 public OrderingService(IQuotationService quotationService, IRepository repository)
 {
     this.quotationService = quotationService;
     this.repository       = repository;
 }
コード例 #34
0
 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;
 }
コード例 #37
0
 public EuroQuotationService(IQuotationService quotationService)
 {
     _quotationService = quotationService;
 }
コード例 #38
0
 public QuotationService(IQuotationService quote)
 {
     this._quote = quote;
 }