Beispiel #1
0
        public async Task GetTorrent_3_ReturnExpectedTorrent()
        {
            // Arrange
            const int id = 3;

            // Act
            var result = await _torrentsService.GetTorrent(id);

            // Assert
            Assert.NotNull(result);
            Assert.True(result.Id == id, $"Current id ={result.Id} doesn't match expected id={id})");
        }
Beispiel #2
0
 public async Task <TorrentDescriptionView> GetTorrent(int id) =>
 _mapper.Map <TorrentDescriptionView>(await _torrentsService.GetTorrent(id));