public void Setup() { rpsPlayer = Substitute.For <IRPSPlayer>(); rpsPlayer.GetReady(Arg.Any <int>(), Arg.Any <int>()).Returns(Constants.GameSuccessfullySetup); rpsPlayer.MakeMove().Returns(Move.Rock); rpsPlayer.Result(Arg.Any <Outcome>()).Returns(Constants.OverallWin); gameController = new GameController(rpsPlayer); }
public async Task <ActionResult <Move> > GetMove() { return(Ok(await rpsPlayer.MakeMove())); }