Exemplo n.º 1
0
        public async Task TestGetAllAvailableMovies()
        {
            //arrange
            _movieService.Setup(movieService => movieService.GetAllAvailableMoviesAsync())
            .ReturnsAsync(new List <Movie>());

            //act
            await _movieController.GetAllAvailableMoviesAsync();

            //verify
            _movieService.Verify(movieService => movieService.GetAllAvailableMoviesAsync(), Times.Once());
        }