protected override void Act()
        {
            SectionWithExtendedViewModel section = new SectionWithExtendedViewModel();

            var configSourceModel = Container.Resolve<ConfigurationSourceModel>();
            configSourceModel.AddSection("section", section);

            sectionViewModel = configSourceModel.Sections.OfType<SectionViewModel>().First();
        }
        protected override void Act()
        {
            SectionWithExtendedViewModel section = new SectionWithExtendedViewModel();

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

            configSourceModel.AddSection("section", section);

            sectionViewModel = configSourceModel.Sections.OfType <SectionViewModel>().First();
        }
        protected override void Arrange()
        {
            base.Arrange();

            var sectionLocator = new Mock<ConfigurationSectionLocator>();
            sectionLocator.Setup(x => x.ConfigurationSectionNames).Returns(new[] {"section"});
            Container.RegisterInstance<ConfigurationSectionLocator>(sectionLocator.Object);

            SectionWithExtendedViewModel section = new SectionWithExtendedViewModel();
            
            source = new DesignDictionaryConfigurationSource();
            source.Add("section", section);
        }
Пример #4
0
        protected override void Arrange()
        {
            base.Arrange();

            var sectionLocator = new Mock <ConfigurationSectionLocator>();

            sectionLocator.Setup(x => x.ConfigurationSectionNames).Returns(new[] { "section" });
            Container.RegisterInstance <ConfigurationSectionLocator>(sectionLocator.Object);

            SectionWithExtendedViewModel section = new SectionWithExtendedViewModel();

            source = new DesignDictionaryConfigurationSource();
            source.Add("section", section);
        }
        protected override void Arrange()
        {
            base.Arrange();

            sectionWithExtendedViewmodel = new SectionWithExtendedViewModel();
        }
        protected override void Arrange()
        {
            base.Arrange();

            sectionWithExtendedViewmodel = new SectionWithExtendedViewModel();
        }