@@ -25,6 +25,7 @@ public class ExecuteCoreTests : TestBase
25
25
private IEnvironment environment ;
26
26
private ILog log ;
27
27
private IConfigFileLocator configFileLocator ;
28
+ private IBuildServerResolver buildServerResolver ;
28
29
29
30
[ SetUp ]
30
31
public void SetUp ( )
@@ -33,12 +34,13 @@ public void SetUp()
33
34
environment = new TestEnvironment ( ) ;
34
35
log = new NullLog ( ) ;
35
36
configFileLocator = new DefaultConfigFileLocator ( fileSystem , log ) ;
37
+ buildServerResolver = new BuildServerResolver ( null , log ) ;
36
38
}
37
39
38
40
[ Test ]
39
41
public void CacheKeySameAfterReNormalizing ( )
40
42
{
41
- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
43
+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
42
44
43
45
RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
44
46
{
@@ -60,7 +62,7 @@ public void CacheKeySameAfterReNormalizing()
60
62
[ Description ( "LibGit2Sharp fails here when running under Mono" ) ]
61
63
public void CacheKeyForWorktree ( )
62
64
{
63
- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
65
+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
64
66
65
67
RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
66
68
{
@@ -126,7 +128,7 @@ public void CacheFileExistsOnDisk()
126
128
var logAppender = new TestLogAppender ( Action ) ;
127
129
log = new Log ( logAppender ) ;
128
130
129
- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
131
+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
130
132
131
133
RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
132
134
{
@@ -175,7 +177,7 @@ public void CacheFileExistsOnDiskWhenOverrideConfigIsSpecifiedVersionShouldBeDyn
175
177
CommitDate: 2015-11-10
176
178
" ;
177
179
178
- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
180
+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
179
181
180
182
RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
181
183
{
@@ -206,7 +208,7 @@ public void CacheFileIsMissing()
206
208
var logAppender = new TestLogAppender ( Action ) ;
207
209
log = new Log ( logAppender ) ;
208
210
209
- var executeCore = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
211
+ var executeCore = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
210
212
211
213
RepositoryScope ( executeCore ) ;
212
214
var logsMessages = stringBuilder . ToString ( ) ;
@@ -250,7 +252,7 @@ public void ConfigChangeInvalidatesCache()
250
252
CommitDate: 2015-11-10
251
253
" ;
252
254
253
- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
255
+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
254
256
255
257
RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
256
258
{
@@ -303,7 +305,7 @@ public void NoCacheBypassesCache()
303
305
CommitDate: 2015-11-10
304
306
" ;
305
307
306
- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
308
+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
307
309
308
310
RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
309
311
{
@@ -323,7 +325,7 @@ public void NoCacheBypassesCache()
323
325
[ Test ]
324
326
public void WorkingDirectoryWithoutGit ( )
325
327
{
326
- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
328
+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
327
329
328
330
RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
329
331
{
@@ -339,7 +341,7 @@ public void WorkingDirectoryWithoutGit()
339
341
[ Description ( "LibGit2Sharp fails when running under Mono" ) ]
340
342
public void GetProjectRootDirectory_WorkingDirectoryWithWorktree ( )
341
343
{
342
- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
344
+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
343
345
344
346
RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
345
347
{
@@ -364,7 +366,7 @@ public void GetProjectRootDirectory_WorkingDirectoryWithWorktree()
364
366
[ Test ]
365
367
public void GetProjectRootDirectory_NoWorktree ( )
366
368
{
367
- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
369
+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
368
370
369
371
RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
370
372
{
@@ -378,7 +380,7 @@ public void GetProjectRootDirectory_NoWorktree()
378
380
[ Test ]
379
381
public void DynamicRepositoriesShouldNotErrorWithFailedToFindGitDirectory ( )
380
382
{
381
- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
383
+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
382
384
383
385
RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
384
386
{
@@ -396,7 +398,7 @@ public void DynamicRepositoriesShouldNotErrorWithFailedToFindGitDirectory()
396
398
[ Test ]
397
399
public void GetDotGitDirectory_NoWorktree ( )
398
400
{
399
- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
401
+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
400
402
401
403
RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
402
404
{
@@ -412,7 +414,7 @@ public void GetDotGitDirectory_NoWorktree()
412
414
[ Description ( "LibGit2Sharp fails when running under Mono" ) ]
413
415
public void GetDotGitDirectory_Worktree ( )
414
416
{
415
- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
417
+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
416
418
417
419
RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
418
420
{
0 commit comments