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 <string> > AddResult(Outcome yourOutcome) { return(Ok(await rpsPlayer.Result(yourOutcome))); }