Skip to content

Commit

Permalink
Incorporate ConflictDetectionSession
Browse files Browse the repository at this point in the history
  • Loading branch information
BZngr committed Jul 10, 2020
1 parent 339065f commit 392fea1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions RubberduckTests/Refactoring/MockIoC/MockRefactoringContainer.cs
Expand Up @@ -109,6 +109,24 @@ public void Install(IWindsorContainer container, IConfigurationStore store)
.Unless(t => t.IsAbstract)
.WithService.DefaultInterfaces()
.LifestyleSingleton());

RegisterConflictDetectionFactories(container);
}

private void RegisterConflictDetectionFactories(IWindsorContainer container)
{
container.Register(Component.For<IConflictFinderFactory>()
.ImplementedBy<ConflictFinderFactory>()
.LifestyleSingleton());
container.Register(Component.For<IConflictSessionFactory>()
.ImplementedBy<ConflictSessionFactory>()
.LifestyleSingleton());
container.Register(Component.For<IDeclarationProxyFactory>()
.ImplementedBy<ConflictDetectionDeclarationProxyFactory>()
.LifestyleSingleton());
container.Register(Component.For<IConflictDetectorFactory>()
.ImplementedBy<ConflictDetectorFactory>()
.LifestyleSingleton());
}

private void SetUpCollectionResolver(IWindsorContainer container)
Expand Down

0 comments on commit 392fea1

Please sign in to comment.