Skip to content

Commit b59425a

Browse files
committed
Update IoC registration for the filesystem
1 parent 6c9b9db commit b59425a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Rubberduck.Main/Root/RubberduckIoCInstaller.cs

+9
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
using Rubberduck.VBEditor.VbeRuntime;
6262
using Rubberduck.Parsing.Annotations;
6363
using Rubberduck.UI.Refactorings.AnnotateDeclaration;
64+
using System.IO.Abstractions;
6465

6566
namespace Rubberduck.Root
6667
{
@@ -95,6 +96,7 @@ public void Install(IWindsorContainer container, IConfigurationStore store)
9596
ActivateAutoMagicFactories(container);
9697
OverridePropertyInjection(container);
9798

99+
RegisterFilesystem(container);
98100
RegisterInstances(container);
99101
RegisterAppWithSpecialDependencies(container);
100102
RegisterUnitTestingComSide(container);
@@ -1091,6 +1093,13 @@ private void RegisterAppWithSpecialDependencies(IWindsorContainer container)
10911093
.LifestyleSingleton());
10921094
}
10931095

1096+
private void RegisterFileSystem(IWindsorContainer container)
1097+
{
1098+
container.Register(Component.For<IFileSystem>()
1099+
.ImplementedBy<FileSystem>()
1100+
.LifestyleSingleton());
1101+
}
1102+
10941103
private void RegisterInstances(IWindsorContainer container)
10951104
{
10961105
container.Register(Component.For<IVBE>().Instance(_vbe));

0 commit comments

Comments
 (0)