public async Task ShouldHaveResponseWithHasErrorFalseWhenDownloadMusic() { // Arrange var url = "https://www.youtube.com/watch?v=hjpF8ukSrvk&list=RDCLAK5uy_mfut9V_o1n9nVG_m5yZ3ztCif29AHUffI&index=12"; // Act var downloadMusicResponse = await _youtubeDlService.DownloadMusicAsync(url); // Arrange Assert.False(downloadMusicResponse.HasError); }
public async Task ShouldHaveResponseWithHasErrorFalseWhenDownloadMusic() { // Arrange var faker = new Faker(); var fakeUrl = faker.Random.String2(2); // Act var downloadMusicResponse = await _youtubeDlService.DownloadMusicAsync(fakeUrl); // Arrange Assert.False(downloadMusicResponse.HasError); }