예제 #1
0
        public RabbitMqService(
            IOptions <MessageBrokerSettings> messageBrokerSettings, IStockMarketService stockMarketService)
        {
            this._messageBrokerManager = new RabbitMqMessageBrokerManager <StockQuoteCommand>(messageBrokerSettings);
            _stockMarketService        = stockMarketService;

            Init();
        }
        public StockMarketServiceFixture(ITestOutputHelper testOutput)
        {
            _testOutput = testOutput;
            var settings = ConfigurationSingletonFactory.GetStockMarketSettings();

            _stockMarketServiceCsv = new StockMarketService(new System.Net.Http.HttpClient(), settings);

            settings.Value.Format   = "json";
            _stockMarketServiceJson = new StockMarketService(new System.Net.Http.HttpClient(), settings);
        }
예제 #3
0
 public SqlBaseModel()
 {
     _stockMarketService = Startup.AutofacContainer.Resolve <IStockMarketService>();
 }
예제 #4
0
 public SqlBaseModel(IStockMarketService stockMarketService)
 {
     _stockMarketService = stockMarketService;
 }
예제 #5
0
 public StockMarketController(IStockMarketService _stockMarketService)
 {
     stockMarketService = _stockMarketService;
 }
예제 #6
0
 public StockBroker(IStockMarketService service)
 {
     this.service = service;
 }
예제 #7
0
 public HomeController(IStockMarketService stockMarketService)
 {
     _stockMarketService = stockMarketService;
 }
예제 #8
0
 public EditSqlModel(IStockMarketService stockMarketService) : base(stockMarketService)
 {
 }
예제 #9
0
 public CreateSqlModel(IStockMarketService stockMarketService) : base(stockMarketService)
 {
 }