public void Test_UnSettledBets_All_Under_1000() { var bets = new List<UnSettled>(); bets.Add(new UnSettled { Customer = 1, Win = 999 }); bets.Add(new UnSettled { Customer = 2, Win = 1 }); bets.Add(new UnSettled { Customer = 3, Win = 2 }); var test = new WinOver1000(); var results = test.AssessRisk(bets); Assert.IsTrue(results.Count == 0); }
public void Test_UnSettledBets_Mixture() { var bets = new List<UnSettled>(); bets.Add(new UnSettled { Customer = 1, Win = 1 }); bets.Add(new UnSettled { Customer = 2, Win = 2 }); bets.Add(new UnSettled { Customer = 3, Win = 3 }); bets.Add(new UnSettled { Customer = 4, Win = 1000 }); bets.Add(new UnSettled { Customer = 5, Win = 1001 }); bets.Add(new UnSettled { Customer = 6, Win = 1002 }); var test = new WinOver1000(); var results = test.AssessRisk(bets); Assert.IsTrue(results.Count == 3); }