MockDocument.cs 2.1 KB

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