public void RegisterDependencies_RegistersRequiredDependencies() { var contractTypes = typeof(IBootstrap).Assembly.GetTypes(); var expectedTypes = contractTypes .Where(IsNotExcludedAndInterface) .Concat(IncludedTypes); var container = new TestContainer(); _dependencyConfig.RegisterDependencies(container); var actualTypes = container.GetRegisteredTypes(); Assert.That(actualTypes, Is.EquivalentTo(expectedTypes)); }