static void Main(string[] args) { var game = new RouletteGame.RouletteGame(new Roulette()); game.OpenBets(); game.PlaceBet(new ColorBet("Player 1", 100, Field.Black)); game.PlaceBet(new ColorBet("Player 1", 100, Field.Red)); game.PlaceBet(new EvenOddBet("Player 2", 100, true)); game.PlaceBet(new EvenOddBet("Player 2", 100, false)); for (uint i = 0; i < 36; i++) game.PlaceBet(new FieldBet("Player 3", 100, i)); game.CloseBets(); game.SpinRoulette(); game.PayUp(); }
static void Main(string[] args) { var game = new RouletteGame.RouletteGame(new Roulette(new Randomize()), new ConsoleDevice()); game.OpenBets(); game.PlaceBet(new ColorBet("Player 1", 100, Field.Black)); game.PlaceBet(new ColorBet("Player 1", 100, Field.Red)); game.PlaceBet(new EvenOddBet("Player 2", 100, true)); game.PlaceBet(new EvenOddBet("Player 2", 100, false)); for (uint i = 0; i < 36; i++) { game.PlaceBet(new NumberBet("Player 3", 100, i)); } game.CloseBets(); game.SpinRoulette(); game.PayUp(); }
public void RunBeforeTests() { _fakeRoulette = new FakeRoulette(); _fakeOutputDevice = new FakeOutputDevice(); _uut = new RouletteGameClass(_fakeRoulette, _fakeOutputDevice); }
public void RunBeforeTests() { _fakeRoulette = new FakeRoulette(); _fakeOutputDevice = new FakeOutputDevice(); _uut = new RouletteGameClass(_fakeRoulette,_fakeOutputDevice); }