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})"); }
public async Task <TorrentDescriptionView> GetTorrent(int id) => _mapper.Map <TorrentDescriptionView>(await _torrentsService.GetTorrent(id));