Skip to content

Commit 36d7d73

Browse files
committed
Replace monkey-patch fix for registration with proper fix
1 parent ba6f5de commit 36d7d73

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Rubberduck.Core/UnitTesting/IFakes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public interface IFakes
88

99
public interface IFakesFactory
1010
{
11-
IFakes GetFakes();
11+
IFakes Create();
1212
void Release(IFakes fakes);
1313
}
1414
}

Rubberduck.Core/UnitTesting/TestEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void Run(IEnumerable<TestMethod> tests)
7474
.Where(test => test.Declaration.QualifiedName.QualifiedModuleName.ProjectId == capturedModule.Key.ProjectId
7575
&& test.Declaration.QualifiedName.QualifiedModuleName.ComponentName == capturedModule.Key.ComponentName);
7676

77-
var fakes = _fakesFactory.GetFakes();
77+
var fakes = _fakesFactory.Create();
7878
try
7979
{
8080
Run(module.Key.FindModuleInitializeMethods(_state));

Rubberduck.Main/Root/RubberduckIoCInstaller.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ private void RegisterUnitTestingComSide(IWindsorContainer container)
159159
.LifestyleSingleton());
160160
container.Register(Component.For<IFakes>()
161161
.ImplementedBy<FakesProvider>()
162-
.Named("Fakes")
163162
.LifestyleTransient());
164163
}
165164

0 commit comments

Comments
 (0)