@@ -12,34 +12,14 @@ public class MockRepository : IGitRepository
12
12
public IBranch Head { get ; set ; }
13
13
public ITagCollection Tags => Substitute . For < ITagCollection > ( ) ;
14
14
public IReferenceCollection Refs => Substitute . For < IReferenceCollection > ( ) ;
15
-
16
15
public IBranchCollection Branches { get ; set ; }
17
16
public ICommitCollection Commits
18
17
{
19
18
get => commits ?? Head . Commits ;
20
19
set => commits = value ;
21
20
}
22
21
23
- public string Path { get ; }
24
- public string WorkingDirectory { get ; }
25
- public bool IsHeadDetached { get ; }
26
- public IGitRepository CreateNew ( string gitRootPath )
27
- {
28
- throw new NotImplementedException ( ) ;
29
- }
30
22
public int GetNumberOfUncommittedChanges ( ) => 0 ;
31
- public ICommit FindMergeBase ( ICommit commit , ICommit otherCommit ) => throw new NotImplementedException ( ) ;
32
- public string ShortenObjectId ( ICommit commit ) => throw new NotImplementedException ( ) ;
33
- public bool GitRepoHasMatchingRemote ( string targetUrl ) => throw new NotImplementedException ( ) ;
34
- public void CleanupDuplicateOrigin ( string gitRootPath , string remoteName ) => throw new NotImplementedException ( ) ;
35
- public bool GetMatchingCommitBranch ( ICommit baseVersionSource , IBranch branch , ICommit firstMatchingCommit )
36
- {
37
- throw new NotImplementedException ( ) ;
38
- }
39
- public IEnumerable < ICommit > GetCommitsReacheableFrom ( ICommit commit , IBranch branch )
40
- {
41
- throw new NotImplementedException ( ) ;
42
- }
43
23
public IEnumerable < ICommit > GetCommitsReacheableFromHead ( ICommit headCommit )
44
24
{
45
25
var filter = new CommitFilter
@@ -52,46 +32,26 @@ public IEnumerable<ICommit> GetCommitsReacheableFromHead(ICommit headCommit)
52
32
53
33
return commitCollection . ToList ( ) ;
54
34
}
55
- public ICommit GetForwardMerge ( ICommit commitToFindCommonBase , ICommit findMergeBase )
56
- {
57
- throw new NotImplementedException ( ) ;
58
- }
59
- public IEnumerable < ICommit > GetMergeBaseCommits ( ICommit mergeCommit , ICommit mergedHead , ICommit findMergeBase )
60
- {
61
- throw new NotImplementedException ( ) ;
62
- }
63
- public ICommit GetBaseVersionSource ( ICommit currentBranchTip )
64
- {
65
- throw new NotImplementedException ( ) ;
66
- }
67
- public IEnumerable < ICommit > GetMainlineCommitLog ( ICommit baseVersionSource , ICommit mainlineTip )
68
- {
69
- throw new NotImplementedException ( ) ;
70
- }
71
- public IEnumerable < ICommit > GetCommitLog ( ICommit baseVersionSource , ICommit currentCommit )
72
- {
73
- throw new NotImplementedException ( ) ;
74
- }
75
- public void Checkout ( string commitOrBranchSpec )
76
- {
77
- throw new NotImplementedException ( ) ;
78
- }
79
- public void Checkout ( IBranch branch )
80
- {
81
- throw new NotImplementedException ( ) ;
82
- }
83
- public void Fetch ( string remote , IEnumerable < string > refSpecs , AuthenticationInfo auth , string logMessage )
84
- {
85
- throw new NotImplementedException ( ) ;
86
- }
87
- public void CreateBranchForPullRequestBranch ( AuthenticationInfo auth )
88
- {
89
- throw new NotImplementedException ( ) ;
90
- }
91
- public string Clone ( string sourceUrl , string workdirPath , AuthenticationInfo auth )
92
- {
93
- throw new NotImplementedException ( ) ;
94
- }
35
+ public string Path => throw new NotImplementedException ( ) ;
36
+ public string WorkingDirectory => throw new NotImplementedException ( ) ;
37
+ public bool IsHeadDetached => throw new NotImplementedException ( ) ;
38
+ public IGitRepository CreateNew ( string gitRootPath ) => throw new NotImplementedException ( ) ;
39
+ public ICommit FindMergeBase ( ICommit commit , ICommit otherCommit ) => throw new NotImplementedException ( ) ;
40
+ public string ShortenObjectId ( ICommit commit ) => throw new NotImplementedException ( ) ;
41
+ public bool GitRepoHasMatchingRemote ( string targetUrl ) => throw new NotImplementedException ( ) ;
42
+ public void CleanupDuplicateOrigin ( string gitRootPath , string remoteName ) => throw new NotImplementedException ( ) ;
43
+ public bool GetMatchingCommitBranch ( ICommit baseVersionSource , IBranch branch , ICommit firstMatchingCommit ) => throw new NotImplementedException ( ) ;
44
+ public IEnumerable < ICommit > GetCommitsReacheableFrom ( ICommit commit , IBranch branch ) => throw new NotImplementedException ( ) ;
45
+ public ICommit GetForwardMerge ( ICommit commitToFindCommonBase , ICommit findMergeBase ) => throw new NotImplementedException ( ) ;
46
+ public IEnumerable < ICommit > GetMergeBaseCommits ( ICommit mergeCommit , ICommit mergedHead , ICommit findMergeBase ) => throw new NotImplementedException ( ) ;
47
+ public ICommit GetBaseVersionSource ( ICommit currentBranchTip ) => throw new NotImplementedException ( ) ;
48
+ public IEnumerable < ICommit > GetMainlineCommitLog ( ICommit baseVersionSource , ICommit mainlineTip ) => throw new NotImplementedException ( ) ;
49
+ public IEnumerable < ICommit > GetCommitLog ( ICommit baseVersionSource , ICommit currentCommit ) => throw new NotImplementedException ( ) ;
50
+ public void Checkout ( string commitOrBranchSpec ) => throw new NotImplementedException ( ) ;
51
+ public void Checkout ( IBranch branch ) => throw new NotImplementedException ( ) ;
52
+ public void Fetch ( string remote , IEnumerable < string > refSpecs , AuthenticationInfo auth , string logMessage ) => throw new NotImplementedException ( ) ;
53
+ public void CreateBranchForPullRequestBranch ( AuthenticationInfo auth ) => throw new NotImplementedException ( ) ;
54
+ public string Clone ( string sourceUrl , string workdirPath , AuthenticationInfo auth ) => throw new NotImplementedException ( ) ;
95
55
public IRemote EnsureOnlyOneRemoteIsDefined ( ) => throw new NotImplementedException ( ) ;
96
56
public void Dispose ( ) => throw new NotImplementedException ( ) ;
97
57
}
0 commit comments