public async Task ReturnsNotFoundWhenNoVideos() { _session .ExecuteAsync(Arg.Any <GetAllVideosQuery>()) .Returns(Enumerable.Empty <Video>()); var result = await _controller.Get(); result.Should().BeOfType <NotFoundResult>(); }
public void GetAll() { MockVideoService.Setup(r => r.GetAll()).Returns(new List <VideoBO> { MockVideoBO }); var result = _controller.Get(); Assert.NotEmpty(result); }