Skip to content

Commit

Permalink
Eliminate use of ProjectService in agents and AbstractTestRunner (#564)
Browse files Browse the repository at this point in the history
* Eliminate use of ProjectService in agents as well as from AbstractTestRunner

* Remove agent refrence toSettingsService
  • Loading branch information
CharliePoole authored and ChrisMaddock committed Mar 16, 2019
1 parent bf005ab commit 4c0fa55
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/NUnitEngine/nunit-agent/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ public static void Main(string[] args)

// Custom Service Initialization
//log.Info("Adding Services");
engine.Services.Add(new SettingsService(false));
engine.Services.Add(new ExtensionService());
engine.Services.Add(new ProjectService());
engine.Services.Add(new DomainManager());
engine.Services.Add(new InProcessTestRunnerFactory());
engine.Services.Add(new DriverService());
Expand Down
3 changes: 0 additions & 3 deletions src/NUnitEngine/nunit.engine/Runners/AbstractTestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public AbstractTestRunner(IServiceLocator services, TestPackage package)
{
Services = services;
TestRunnerFactory = Services.GetService<ITestRunnerFactory>();
ProjectService = Services.GetService<IProjectService>();
TestPackage = package;
}

Expand All @@ -50,8 +49,6 @@ public AbstractTestRunner(IServiceLocator services, TestPackage package)
/// </summary>
protected IServiceLocator Services { get; private set; }

protected IProjectService ProjectService { get; private set; }

protected ITestRunnerFactory TestRunnerFactory { get; private set; }

/// <summary>
Expand Down

0 comments on commit 4c0fa55

Please sign in to comment.