using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using ErsatzTV.Core.Domain; using ErsatzTV.Core.Interfaces.Repositories; using ErsatzTV.Core.Scheduling; using LanguageExt; namespace ErsatzTV.Core.Tests.Fakes { public class FakeMediaCollectionRepository : IMediaCollectionRepository { private readonly Map> _data; public FakeMediaCollectionRepository(Map> data) => _data = data; public Task> GetCollectionWithCollectionItemsUntracked(int id) => throw new NotSupportedException(); public Task> GetItems(int id) => _data[id].ToList().AsTask(); public Task> GetMultiCollectionItems(int id) => throw new NotSupportedException(); public Task> GetMultiCollectionCollections(int id) => throw new NotSupportedException(); public Task> PlayoutIdsUsingCollection(int collectionId) => throw new NotSupportedException(); public Task> PlayoutIdsUsingMultiCollection(int multiCollectionId) => throw new NotSupportedException(); public Task IsCustomPlaybackOrder(int collectionId) => false.AsTask(); } }