#region ========================================================================= USING ===================================================================================== using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; #endregion namespace Lumina.Plugins.Calibre.Fixtures.Core.Metadata; /// /// Fixture class for the record. /// [ExcludeFromCodeCoverage] internal sealed class TestMetadataLookupFixture { /// /// Creates a that is not a book lookup. /// /// The Id of the media library, or to generate a random one. /// The file system path of the media item. /// The created . public TestMetadataLookup Create( Guid? libraryId = null, string? path = null) { return new TestMetadataLookup(libraryId ?? Guid.NewGuid(), path ?? "/some/path"); } /// /// Creates a list of . /// /// The number of elements to create. /// The created list. public List CreateMany(int count = 3) { return [.. Enumerable.Range(0, count).Select(_ => Create())]; } }