#region ========================================================================= USING =====================================================================================
using Bogus;
using Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
#endregion
namespace Lumina.Presentation.Web.Fixtures.Common.DTO.AudioLibrary.MusicLibrary;
///
/// Fixture class for the class.
///
[ExcludeFromCodeCoverage]
public class UpdateMusicCoverDtoFixture
{
private readonly Faker _faker = new();
///
/// Creates a new instance with randomized test data.
///
/// Optional. The relative path of the stored cover image.
/// Whether the cover path should be included, or forced to .
/// A configured instance.
public UpdateMusicCoverDto Create(
string? coverPath = null,
bool includeCoverPath = true)
{
return new UpdateMusicCoverDto
{
CoverPath = includeCoverPath ? (coverPath ?? _faker.System.FilePath()) : null
};
}
///
/// Creates multiple instances with randomized test data.
///
/// Number of instances to create.
/// List of configured instances.
public List CreateMany(int count = 3)
{
return [.. Enumerable.Range(0, count).Select(_ => Create())];
}
}