Esempio n. 1
0
        protected override void Arrange()
        {
            base.Arrange();

            var builder = new TestConfigurationBuilder();

            configSource = new DictionaryConfigurationSource();
            builder.AddLoggingSettings()
            .Build(configSource);

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

            source.Add(BlockSectionNames.Logging, LoggingConfiguration);
            configurationSourceModel.Load(source);

            LoggingSettingsViewModel =
                configurationSourceModel.Sections
                .Where(x => x.ConfigurationType == typeof(LoggingSettings)).Single();
        }