public GetExpertStatsHandler(PredictionsContext context, IMapper mapper) { _context = context; _mapper = mapper; _statService = new StatService(); _predictionService = new PredictionService(); }
public PredictionsController() { _context = new PredictionsContext(); _expertService = new ExpertService(_context); _tourService = new TourService(_context); _predictionService = new PredictionService(_context); _matchService = new MatchService(_context); }
public DbFixture() { var options = new DbContextOptionsBuilder <PredictionsContext>() .UseSqlite("Data Source=predictions_test.db") .Options; Context = new PredictionsContext(options); Context.Database.EnsureDeleted(); Context.Database.EnsureCreated(); }
public RealDbFetchingTests() { var connectionString = "workstation id=Predictions.mssql.somee.com;packet size=4096;user id=cherocky_SQLLogin_1;pwd=fg6ejtwfks;data source=Predictions.mssql.somee.com;persist security info=False;initial catalog=Predictions"; var options = new DbContextOptionsBuilder <PredictionsContext>() .UseSqlServer(connectionString) .Options; _context = new PredictionsContext(options); }
public static async Task <int> GetTourId(this PredictionsContext context, int tourNumber, int tournamentId, CancellationToken cancellationToken) { var tournament = await context .Tournaments .FetchWithTours(FetchMode.ForRead) .WithIdAsync(tournamentId, cancellationToken); var tour = tournament .Tours .WithNumber(tourNumber); return(tour.Id); }
public GetPredictionsByTourAndExpertHandler(PredictionsContext context, IMapper mapper) { _context = context; _mapper = mapper; _predictionService = new PredictionService(); }
public GetHeadToHeadTournamentScheduleHandler(PredictionsContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public CreateTournamentHandler(PredictionsContext context) { _context = context; }
public DbFixture(PredictionsContext context) { Context = context; }
public GetIncomingTourHandler(PredictionsContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public GetExpertStatsHandler(PredictionsContext context) { _context = context; _predictionService = new PredictionService(); _statService = new StatService(); }
public EvaluateHeadToHeadTourHandler(PredictionsContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public CreateExpertHandler(PredictionsContext context) { _context = context; }
public GetExpertsHandler(PredictionsContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public GetTourPredictionsHandler(PredictionsContext context, IMapper mapper) { _context = context; _mapper = mapper; _predictionService = new PredictionService(); }
public UpdateExpertInfoHandler(PredictionsContext context) { _context = context; }
public UpdateTourInfoHandler(PredictionsContext context) { _context = context; }
public GetHeadToHeadToursHandler(PredictionsContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public GetIdByNicknameHandler(PredictionsContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public GetTournamentToursHandler(PredictionsContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public RollbackHeadToHeadTourHandler(PredictionsContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public AddExpertTourPredictionsHandler(PredictionsContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public DeleteTourHandler(PredictionsContext context) { _context = context; }