code cleanup (#743)

* update tools

* run code cleanup

* update dependencies
This commit is contained in:
Jason Dove
2022-04-19 17:47:18 -05:00
committed by GitHub
parent e250e93a8e
commit c02b83d0d6
1223 changed files with 5487 additions and 5547 deletions
+1 -1
View File
@@ -3,4 +3,4 @@
public record FakeFileEntry(string Path)
{
public DateTime LastWriteTime { get; set; } = SystemTime.MinValueUtc;
}
}
+1 -1
View File
@@ -1,3 +1,3 @@
namespace ErsatzTV.Core.Tests.Fakes;
public record FakeFolderEntry(string Path);
public record FakeFolderEntry(string Path);
@@ -48,13 +48,13 @@ public class FakeLocalFileSystem : ILocalFileSystem
public bool FileExists(string path) => _files.Any(f => f.Path == path);
public bool FolderExists(string folder) => false;
public Task<byte[]> ReadAllBytes(string path) => TestBytes.AsTask();
public Task<Either<BaseError, Unit>> CopyFile(string source, string destination) =>
Task.FromResult(Right<BaseError, Unit>(Unit.Default));
public Unit EmptyFolder(string folder) => Unit.Default;
public Task<byte[]> ReadAllBytes(string path) => TestBytes.AsTask();
private static List<DirectoryInfo> Split(DirectoryInfo path)
{
var result = new List<DirectoryInfo>();
@@ -72,4 +72,4 @@ public class FakeLocalFileSystem : ILocalFileSystem
return result;
}
}
}
@@ -20,7 +20,8 @@ public class FakeMediaCollectionRepository : IMediaCollectionRepository
public Task<List<CollectionWithItems>> GetMultiCollectionCollections(int id) =>
throw new NotSupportedException();
public Task<List<CollectionWithItems>> GetFakeMultiCollectionCollections(int? collectionId, int? smartCollectionId) =>
public Task<List<CollectionWithItems>>
GetFakeMultiCollectionCollections(int? collectionId, int? smartCollectionId) =>
throw new NotSupportedException();
public Task<List<int>> PlayoutIdsUsingCollection(int collectionId) => throw new NotSupportedException();
@@ -33,4 +34,4 @@ public class FakeMediaCollectionRepository : IMediaCollectionRepository
public Task<bool> IsCustomPlaybackOrder(int collectionId) => false.AsTask();
public Task<Option<string>> GetNameFromKey(CollectionKey emptyCollection) => Option<string>.None.AsTask();
}
}
@@ -21,4 +21,4 @@ public class FakeMovieWithPath : MediaItemScanResult<Movie>
}
}) =>
IsAdded = true;
}
}
@@ -94,4 +94,4 @@ public class FakeTelevisionRepository : ITelevisionRepository
public Task<bool> AddWriter(EpisodeMetadata metadata, Writer writer) => throw new NotSupportedException();
public Task<Unit> UpdatePath(int mediaFileId, string path) => throw new NotSupportedException();
}
}