@@ -25,6 +25,7 @@ public class ExecuteCoreTests : TestBase
2525 private IEnvironment environment ;
2626 private ILog log ;
2727 private IConfigFileLocator configFileLocator ;
28+ private IBuildServerResolver buildServerResolver ;
2829
2930 [ SetUp ]
3031 public void SetUp ( )
@@ -33,12 +34,13 @@ public void SetUp()
3334 environment = new TestEnvironment ( ) ;
3435 log = new NullLog ( ) ;
3536 configFileLocator = new DefaultConfigFileLocator ( fileSystem , log ) ;
37+ buildServerResolver = new BuildServerResolver ( null , log ) ;
3638 }
3739
3840 [ Test ]
3941 public void CacheKeySameAfterReNormalizing ( )
4042 {
41- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
43+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
4244
4345 RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
4446 {
@@ -60,7 +62,7 @@ public void CacheKeySameAfterReNormalizing()
6062 [ Description ( "LibGit2Sharp fails here when running under Mono" ) ]
6163 public void CacheKeyForWorktree ( )
6264 {
63- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
65+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
6466
6567 RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
6668 {
@@ -126,7 +128,7 @@ public void CacheFileExistsOnDisk()
126128 var logAppender = new TestLogAppender ( Action ) ;
127129 log = new Log ( logAppender ) ;
128130
129- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
131+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
130132
131133 RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
132134 {
@@ -175,7 +177,7 @@ public void CacheFileExistsOnDiskWhenOverrideConfigIsSpecifiedVersionShouldBeDyn
175177CommitDate: 2015-11-10
176178" ;
177179
178- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
180+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
179181
180182 RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
181183 {
@@ -206,7 +208,7 @@ public void CacheFileIsMissing()
206208 var logAppender = new TestLogAppender ( Action ) ;
207209 log = new Log ( logAppender ) ;
208210
209- var executeCore = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
211+ var executeCore = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
210212
211213 RepositoryScope ( executeCore ) ;
212214 var logsMessages = stringBuilder . ToString ( ) ;
@@ -250,7 +252,7 @@ public void ConfigChangeInvalidatesCache()
250252CommitDate: 2015-11-10
251253" ;
252254
253- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
255+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
254256
255257 RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
256258 {
@@ -303,7 +305,7 @@ public void NoCacheBypassesCache()
303305CommitDate: 2015-11-10
304306" ;
305307
306- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
308+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
307309
308310 RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
309311 {
@@ -323,7 +325,7 @@ public void NoCacheBypassesCache()
323325 [ Test ]
324326 public void WorkingDirectoryWithoutGit ( )
325327 {
326- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
328+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
327329
328330 RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
329331 {
@@ -339,7 +341,7 @@ public void WorkingDirectoryWithoutGit()
339341 [ Description ( "LibGit2Sharp fails when running under Mono" ) ]
340342 public void GetProjectRootDirectory_WorkingDirectoryWithWorktree ( )
341343 {
342- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
344+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
343345
344346 RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
345347 {
@@ -364,7 +366,7 @@ public void GetProjectRootDirectory_WorkingDirectoryWithWorktree()
364366 [ Test ]
365367 public void GetProjectRootDirectory_NoWorktree ( )
366368 {
367- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
369+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
368370
369371 RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
370372 {
@@ -378,7 +380,7 @@ public void GetProjectRootDirectory_NoWorktree()
378380 [ Test ]
379381 public void DynamicRepositoriesShouldNotErrorWithFailedToFindGitDirectory ( )
380382 {
381- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
383+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
382384
383385 RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
384386 {
@@ -396,7 +398,7 @@ public void DynamicRepositoriesShouldNotErrorWithFailedToFindGitDirectory()
396398 [ Test ]
397399 public void GetDotGitDirectory_NoWorktree ( )
398400 {
399- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
401+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
400402
401403 RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
402404 {
@@ -412,7 +414,7 @@ public void GetDotGitDirectory_NoWorktree()
412414 [ Description ( "LibGit2Sharp fails when running under Mono" ) ]
413415 public void GetDotGitDirectory_Worktree ( )
414416 {
415- var versionAndBranchFinder = new ExecuteCore ( fileSystem , environment , log , configFileLocator ) ;
417+ var versionAndBranchFinder = new ExecuteCore ( fileSystem , log , configFileLocator , buildServerResolver ) ;
416418
417419 RepositoryScope ( versionAndBranchFinder , ( fixture , vv ) =>
418420 {
0 commit comments