コード例 #1
0
        protected override void Arrange()
        {
            base.Arrange();

            AppSettingsSection AppSettings = new AppSettingsSection();

            AppSettings.Settings.Add(new KeyValueConfigurationElement("Setting1", "Value1"));
            AppSettings.Settings.Add(new KeyValueConfigurationElement("Setting2", "Value2"));

            settings = new MockAppSettingsViewModel(Container, "appSettings", AppSettings);
            settings.ElementViewModelServiceDependencies(Container.Resolve<ElementLookup>(),
                                                         Container.Resolve<IApplicationModel>());
        }
コード例 #2
0
        protected override void Arrange()
        {
            base.Arrange();

            AppSettingsSection AppSettings = new AppSettingsSection();

            AppSettings.Settings.Add(new KeyValueConfigurationElement("Setting1", "Value1"));
            AppSettings.Settings.Add(new KeyValueConfigurationElement("Setting2", "Value2"));

            settings = new MockAppSettingsViewModel(Container, "appSettings", AppSettings);
            settings.ElementViewModelServiceDependencies(Container.Resolve <ElementLookup>(),
                                                         Container.Resolve <IApplicationModel>());
        }