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

            categoryElement = LoggingSectionViewModel.GetDescendentsOfType <TraceSourceData>().First();
            overridesPropertyForCategoryElement = GetOverridesProperty(categoryElement);
        }
        protected override void Arrange()
        {
            base.Arrange();

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

            referenceData          = LoggingSectionViewModel.DescendentConfigurationsOfType <TraceListenerReferenceData>().First();
            overrideProperty       = GetOverridesProperty(referenceData);
            overrideProperty.Value = true;
        }
        public void then_logging_block_has_name()
        {
            LoggingSectionViewModel loggingModel = sourceModel.Sections.OfType <LoggingSectionViewModel>().First();

            Assert.IsFalse(string.IsNullOrEmpty(loggingModel.Name));
        }
Esempio n. 6
0
 protected override void Act()
 {
     customSystemDiagnostic = LoggingSectionViewModel.DescendentConfigurationsOfType <SystemDiagnosticsTraceListenerData>().FirstOrDefault();
 }
 public void then_referenceddata_removed_from_source()
 {
     Assert.IsFalse(LoggingSectionViewModel.DescendentConfigurationsOfType <TraceListenerReferenceData>().Any(d => d.ElementId == referenceData.ElementId));
 }