MockDocument.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. using PixiEditor.ChangeableDocument.Changeables.Graph.Interfaces;
  2. using PixiEditor.ChangeableDocument.Changeables.Interfaces;
  3. using PixiEditor.ChangeableDocument.Rendering;
  4. using PixiEditor.DrawingApi.Core.Surfaces.ImageData;
  5. using PixiEditor.Numerics;
  6. namespace PixiEditor.Backend.Tests;
  7. public class MockDocument : IReadOnlyDocument
  8. {
  9. public void Dispose()
  10. {
  11. throw new NotImplementedException();
  12. }
  13. public IReadOnlyNodeGraph NodeGraph { get; }
  14. public IReadOnlySelection Selection { get; }
  15. public IReadOnlyAnimationData AnimationData { get; }
  16. public VecI Size { get; } = new VecI(16, 16);
  17. public bool HorizontalSymmetryAxisEnabled { get; }
  18. public bool VerticalSymmetryAxisEnabled { get; }
  19. public double HorizontalSymmetryAxisY { get; }
  20. public double VerticalSymmetryAxisX { get; }
  21. public void ForEveryReadonlyMember(Action<IReadOnlyStructureNode> action)
  22. {
  23. throw new NotImplementedException();
  24. }
  25. public Image? GetLayerRasterizedImage(Guid layerGuid, int frame)
  26. {
  27. throw new NotImplementedException();
  28. }
  29. public RectI? GetChunkAlignedLayerBounds(Guid layerGuid, int frame)
  30. {
  31. throw new NotImplementedException();
  32. }
  33. public IReadOnlyNode FindNode(Guid guid)
  34. {
  35. throw new NotImplementedException();
  36. }
  37. public IReadOnlyStructureNode? FindMember(Guid guid)
  38. {
  39. throw new NotImplementedException();
  40. }
  41. public bool TryFindMember<T>(Guid guid, out T? member) where T : IReadOnlyStructureNode
  42. {
  43. throw new NotImplementedException();
  44. }
  45. public bool TryFindMember(Guid guid, out IReadOnlyStructureNode? member)
  46. {
  47. throw new NotImplementedException();
  48. }
  49. public IReadOnlyStructureNode FindMemberOrThrow(Guid guid)
  50. {
  51. throw new NotImplementedException();
  52. }
  53. (IReadOnlyStructureNode, IReadOnlyNode) IReadOnlyDocument.FindChildAndParentOrThrow(Guid childGuid)
  54. {
  55. return FindChildAndParentOrThrow(childGuid);
  56. }
  57. public (IReadOnlyStructureNode, IReadOnlyFolderNode) FindChildAndParentOrThrow(Guid childGuid)
  58. {
  59. throw new NotImplementedException();
  60. }
  61. public IReadOnlyList<IReadOnlyStructureNode> FindMemberPath(Guid guid)
  62. {
  63. throw new NotImplementedException();
  64. }
  65. public IReadOnlyReferenceLayer? ReferenceLayer { get; }
  66. public DocumentRenderer Renderer { get; }
  67. }