Exemplo n.º 1
0
        public async Task Should_Get_All_Available_Tracks()
        {
            var track = _fixture.CreateMany <Track>(5);

            _trackRepository
            .Setup(x => x.FindAsync(x => x.Available))
            .ReturnsAsync(track);

            var result = await _trackService.GetAllAvailableTracksAsync();

            _trackRepository.Verify(x => x.FindAsync(x => x.Available), Times.Once);
        }