Skip to content

Commit

Permalink
added other type of file for file mocks (#701)
Browse files Browse the repository at this point in the history
* added other type of file for file mocks

* change name of file

* removed api remnant
  • Loading branch information
phdesroUbi authored Jun 18, 2024
1 parent 0b2e9bc commit 8253448
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions NGitLab.Mock/NonTextFile.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace NGitLab.Mock;

public sealed class NonTextFile : File
{
public NonTextFile(string path, byte[] content)
: base(path)
{
Content = content;
}

public override byte[] Content { get; }
}
3 changes: 3 additions & 0 deletions NGitLab.Mock/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,8 @@ NGitLab.Mock.MilestoneCollection.MilestoneCollection(NGitLab.Mock.GitLabObject c
NGitLab.Mock.MilestoneState
NGitLab.Mock.MilestoneState.active = 0 -> NGitLab.Mock.MilestoneState
NGitLab.Mock.MilestoneState.closed = 1 -> NGitLab.Mock.MilestoneState
NGitLab.Mock.NonTextFile
NGitLab.Mock.NonTextFile.NonTextFile(string path, byte[] content) -> void
NGitLab.Mock.Note
NGitLab.Mock.Note.Author.get -> NGitLab.Mock.UserRef
NGitLab.Mock.Note.Author.set -> void
Expand Down Expand Up @@ -1236,6 +1238,7 @@ override NGitLab.Mock.MergeRequestComment.NoteableType.get -> string
override NGitLab.Mock.MergeRequestComment.NoticableId.get -> int
override NGitLab.Mock.MergeRequestComment.NoticableIid.get -> int
override NGitLab.Mock.MilestoneCollection.Add(NGitLab.Mock.Milestone item) -> void
override NGitLab.Mock.NonTextFile.Content.get -> byte[]
override NGitLab.Mock.NoteCollection<T>.Add(T item) -> void
override NGitLab.Mock.PipelineCollection.Add(NGitLab.Mock.Pipeline pipeline) -> void
override NGitLab.Mock.ProjectCollection.Add(NGitLab.Mock.Project project) -> void
Expand Down

0 comments on commit 8253448

Please sign in to comment.