public void then_logging_block_has_sources_tracelistener_and_formatter()
        {
            LoggingSectionViewModel loggingModel = sourceModel.Sections.OfType <LoggingSectionViewModel>().First();

            Assert.AreEqual(4, loggingModel.GetDescendentsOfType <TraceSourceData>().Count());
            Assert.AreEqual(1, loggingModel.GetDescendentsOfType <FormattedEventLogTraceListenerData>().Count());
            Assert.AreEqual(1, loggingModel.GetDescendentsOfType <TextFormatterData>().Count());
        }
Ejemplo n.º 2
0
        protected override void Arrange()
        {
            base.Arrange();

            LoggingSectionViewModel = SectionViewModel.CreateSection(Container, LoggingSettings.SectionName, base.LoggingSection);
            EmailTraceListener      = LoggingSectionViewModel.GetDescendentsOfType <EmailTraceListenerData>().First();
        }
        protected override void Arrange()
        {
            base.Arrange();

            categoryElement = LoggingSectionViewModel.GetDescendentsOfType <TraceSourceData>().First();
            overridesPropertyForCategoryElement = GetOverridesProperty(categoryElement);
        }