コード例 #1
0
        public async void GetNextTournament_ShouldReturnNotFound_IfNoTournamentFound()
        {
            mockTournamentService.Setup(x => x.GetNextTournament()).ReturnsAsync((Tournament)null);

            var result = Assert.IsType <NotFoundResult>(await tournamentController.GetNextTournament());
        }