static SeeValuation() { IUnityContainer container = (IUnityContainer)HttpContext.Current.Application["unityContainer"]; valuationService = container.Resolve<IValuationService>(); }
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>(); }
public MainViewModel(IValuationService vsvc) { if (IsInDesignMode) { return; } _htUpdates = new ConcurrentDictionary <string, Stock>(); _vsvc = vsvc; var initializeTask = Initialize(); }
public ProjectComponent(IValuationService valuationService) { _valuationService = valuationService; }
public ValuationController(IValuationService valuationService) { this.valuationService = valuationService; }