static SeeValuation()
        {
            IUnityContainer container =
             (IUnityContainer)HttpContext.Current.Application["unityContainer"];

            valuationService   = container.Resolve<IValuationService>();
        }
Example #2
0
        public Worker(ILogger <Worker> logger,
                      IEndOfDayPriceDownloadService endOfDayPriceService,
                      IEndOfDayLogService endOfDayLogService,
                      ICurrencyRatesDownloadService currencyRatesDownloadService,
                      ICurrencyRatesLogService currencyRatesLogService,
                      IValuationService valuationService,
                      IValuationLogService valuationLogService,
                      IPriceAlertService priceAlertService,
                      IConfiguration configuration,
                      INotificationService notificationService)
        {
            this.logger = logger;
            this.endOfDayPriceService         = endOfDayPriceService;
            this.endOfDayLogService           = endOfDayLogService;
            this.currencyRatesDownloadService = currencyRatesDownloadService;
            this.currencyRatesLogService      = currencyRatesLogService;
            this.valuationService             = valuationService;
            this.valuationLogService          = valuationLogService;
            this.priceAlertService            = priceAlertService;
            this.configuration       = configuration;
            this.notificationService = notificationService;

            if (!int.TryParse(configuration["QuoteDelayInMinutes"], out quoteDelayInMinutes))
            {
                quoteDelayInMinutes = 15;
            }
        }
        public static void MyClassInitialize(TestContext testContext)
        {
            container = TestManager.ConfigureUnityContainer("unity");

            valuationService = container.Resolve<IValuationService>();
            valuationDao = container.Resolve<IValuationDao>();
            userService = container.Resolve<IUserService>();
        }
        static AddValuation()
        {
            IUnityContainer container =
             (IUnityContainer)HttpContext.Current.Application["unityContainer"];

            valuationService = container.Resolve<IValuationService>();
            productService = container.Resolve<IProductService>();
            commentService = container.Resolve<ICommentService>();

        }
Example #5
0
        public MainViewModel(IValuationService vsvc)
        {
            if (IsInDesignMode)
            {
                return;
            }

            _htUpdates = new ConcurrentDictionary <string, Stock>();
            _vsvc      = vsvc;

            var initializeTask = Initialize();
        }
Example #6
0
 public ProjectComponent(IValuationService valuationService)
 {
     _valuationService = valuationService;
 }
Example #7
0
 public ValuationController(IValuationService valuationService)
 {
     this.valuationService = valuationService;
 }