Esempio n. 1
0
 public ContextSummaryBuilder([NotNull] IContextTime contextTime, [NotNull] IDetailsFormatter formatter,
                              [CanBeNull] IEnumerable <LogCastBranchData> branches)
     : this(contextTime, formatter)
 {
     _allNodes    = BuildNodes(branches, _rootNode);
     _hasBranches = _allNodes?.Count > 0;
 }
Esempio n. 2
0
 public ContextSummaryBuilder([NotNull] IContextTime contextTime, [NotNull] IDetailsFormatter formatter)
 {
     _contextTime = contextTime ?? throw new ArgumentNullException(nameof(contextTime));
     _formatter   = formatter ?? throw new ArgumentNullException(nameof(formatter));
     _rootNode    = new BranchNode(RootBranchId, null);
 }
Esempio n. 3
0
 public override void Arrange()
 {
     Timer   = GetContextTimer(TimeSpan.FromHours(-1));
     Builder = new ContextSummaryBuilder(Timer, new DetailsFormatter());
     Factory = new MessageFactory("DefaultLogger", Timer.StartedAt);
 }