Removed a couple of ObjectFactory references.

This commit is contained in:
Matt Burke
2010-02-08 15:23:13 -05:00
parent a281a2097f
commit 8419fa8534
2 changed files with 8 additions and 8 deletions
+5 -5
View File
@@ -11,14 +11,14 @@ namespace Sep.Git.Tfs.Commands
[Description("clone [options] tfs-url repository-path <git-repository-path>")]
public class Clone : GitTfsCommand
{
private readonly GitTfsCommand fetch;
private readonly GitTfsCommand init;
private readonly Fetch fetch;
private readonly Init init;
private readonly Globals globals;
public Clone(Globals globals)
public Clone(Globals globals, Fetch fetch, Init init)
{
fetch = ObjectFactory.GetNamedInstance<GitTfsCommand>("fetch");
init = ObjectFactory.GetNamedInstance<GitTfsCommand>("init");
this.fetch = fetch;
this.init = init;
this.globals = globals;
}
+3 -3
View File
@@ -12,7 +12,7 @@ namespace Sep.Git.Tfs.Commands
public class Pull : GitTfsCommand
{
#region GitTfsCommand Members
private readonly GitTfsCommand fetch;
private readonly Fetch fetch;
private readonly Globals globals;
public IEnumerable<IOptionResults> ExtraOptions
@@ -20,9 +20,9 @@ namespace Sep.Git.Tfs.Commands
get { return this.MakeNestedOptionResults(fetch); }
}
public Pull(Globals globals)
public Pull(Globals globals, Fetch fetch)
{
fetch = ObjectFactory.GetNamedInstance<GitTfsCommand>("fetch");
this.fetch = fetch;
this.globals = globals;
}