public async Task ThenTheIndexViewIsReturned() { Mediator.Send(Arg.Any <JoinOrCreateGameCommand>()).Returns(new JoinOrCreateGameResponse(new Game())); var result = await LobbyController.Index(PlayerId_1); result.Should().BeOfType <ViewResult>(); }