public OrderService(FantasyTraderDataContext context, ILogger<OrderService> logger, IHubContext<OrderHub> hub, FantasyMarketPriceSource prices) { _context = context; _logger = logger; _hub = hub; _prices = prices; }
private FantasyTraderDataContext GetContext(string methodName) { var connection = new SqliteConnection("DataSource=:memory:"); connection.Open(); var options = new DbContextOptionsBuilder <FantasyTraderDataContext>() .UseSqlite(connection) .Options; var context = new FantasyTraderDataContext(options); var dbInitialiser = new DbInitialiser(context, new NullLogger <DbInitialiser>()); dbInitialiser.Initialize(); return(context); }
public InstrumentsController(FantasyTraderDataContext context) { _context = context; }
public PositionsController(ILogger <PositionsController> logger, FantasyTraderDataContext context) { _logger = logger; _context = context; }
public OrdersController(FantasyTraderDataContext context, IHubContext <OrderHub> hub, OrderService orderService) { _context = context; _hub = hub; _orderService = orderService; }
public PriceGridsController(FantasyTraderDataContext context) { _context = context; }
public AccountsController(FantasyTraderDataContext context) { _context = context; }
public OrderHub(FantasyTraderDataContext context, OrderService orderService, ILogger <OrderHub> logger) { _context = context; _orderService = orderService; _logger = logger; }