protected override Bet CreateBet(CsvReader csv) { var customerId = csv.GetField<int>("Customer"); var eventId = csv.GetField<int>("Event"); var participantId = csv.GetField<int>("Participant"); var stake = csv.GetField<double>("Stake"); var win = csv.GetField<double>("Win"); var bet = new Bet(customerId, eventId, participantId, stake, win, true); return bet; }
private Bet CreateRandomBet() { var bet = new Bet(_random.Next(), _random.Next(), _random.Next(), _random.Next(), _random.Next(), _random.Next(0, 1) == 1); return bet; }