Exemplo n.º 1
0
        public async Task ReturnsNotFoundWhenNoVideos()
        {
            _session
            .ExecuteAsync(Arg.Any <GetAllVideosQuery>())
            .Returns(Enumerable.Empty <Video>());

            var result = await _controller.Get();

            result.Should().BeOfType <NotFoundResult>();
        }