protected override void Arrange()
        {
            base.Arrange();

            var namespacesCollection = (ElementCollectionViewModel)UnitySectionViewModel.ChildElement("Namespaces");

            NamespaceElement = namespacesCollection.AddNewCollectionElement(typeof(NamespaceElement));
        }
        protected override void Arrange()
        {
            base.Arrange();

            var assembliesCollection = (ElementCollectionViewModel)UnitySectionViewModel.ChildElement("Assemblies");

            AssemblyElement = assembliesCollection.AddNewCollectionElement(typeof(AssemblyElement));
        }
示例#3
0
        protected override void Arrange()
        {
            base.Arrange();

            var containersCollection = (ElementCollectionViewModel)UnitySectionViewModel.ChildElement("Containers");

            containersCollection.AddCommands.First().Execute(null);

            ContainerElement = UnitySectionViewModel.GetDescendentsOfType <ContainerElement>().First();
        }
        protected override void Arrange()
        {
            base.Arrange();

            var configurationSource = new DesignDictionaryConfigurationSource();

            configurationSource.Add(UnityConfigurationSection.SectionName, new UnityConfigurationSection());

            var configurationSourceModel = Container.Resolve <ConfigurationSourceModel>();

            configurationSourceModel.Load(configurationSource);

            UnitySectionViewModel = configurationSourceModel.Sections.OfType <UnitySectionViewModel>().First();
        }