public void ComposeReturnsBlueprintWithExpectedDependencies()
        {
            var shellSettings   = CreateShell();
            var shellDescriptor = CreateShellDescriptor("Alpha", "Beta");
            var shellBlueprint  = _compositionStrategy.Compose(shellSettings, shellDescriptor);

            Assert.That(shellBlueprint.Dependencies.Count(x => x.Type == typeof(AlphaDependency)), Is.EqualTo(1));
            Assert.That(shellBlueprint.Dependencies.Count(x => x.Type == typeof(BetaDependency)), Is.EqualTo(1));
        }
Esempio n. 2
0
 public ShellBlueprint CreateBlueprint()
 {
     return(CompositionStrategy.Compose(ConfigurationService.ConnectionSettings, DescriptorFactory.CreateShellDescriptor()));
 }