diff --git a/ErsatzTV.Core.Tests/Fakes/FakeLocalFileSystem.cs b/ErsatzTV.Core.Tests/Fakes/FakeLocalFileSystem.cs index b4d65dfb0..f244388f1 100644 --- a/ErsatzTV.Core.Tests/Fakes/FakeLocalFileSystem.cs +++ b/ErsatzTV.Core.Tests/Fakes/FakeLocalFileSystem.cs @@ -49,6 +49,9 @@ public class FakeLocalFileSystem : ILocalFileSystem public IEnumerable ListFiles(string folder, string searchPattern) => _files.Map(f => f.Path).Filter(f => Path.GetDirectoryName(f) == folder); + public IEnumerable ListFiles(string folder, params string[] searchPatterns) => + _files.Map(f => f.Path).Filter(f => Path.GetDirectoryName(f) == folder); + public bool FileExists(string path) => _files.Any(f => f.Path == path); public bool FolderExists(string folder) => false; diff --git a/ErsatzTV.Scanner.Tests/Core/Fakes/FakeLocalFileSystem.cs b/ErsatzTV.Scanner.Tests/Core/Fakes/FakeLocalFileSystem.cs index f54a81588..12dd88c3b 100644 --- a/ErsatzTV.Scanner.Tests/Core/Fakes/FakeLocalFileSystem.cs +++ b/ErsatzTV.Scanner.Tests/Core/Fakes/FakeLocalFileSystem.cs @@ -50,6 +50,9 @@ public class FakeLocalFileSystem : ILocalFileSystem public IEnumerable ListFiles(string folder, string searchPattern) => _files.Map(f => f.Path).Filter(f => Path.GetDirectoryName(f) == folder); + public IEnumerable ListFiles(string folder, params string[] searchPatterns) => + _files.Map(f => f.Path).Filter(f => Path.GetDirectoryName(f) == folder); + public bool FileExists(string path) => _files.Any(f => f.Path == path); public bool FolderExists(string folder) => false;