Class TestLog
A default ITestLog implementation.
public sealed class TestLog : ITestLog, INotifyPropertyChanged
- Inheritance
-
TestLog
- Implements
- Inherited Members
- Extension Methods
Constructors
TestLog(ITimeService)
public TestLog(ITimeService timeService)
Parameters
timeService
ITimeService
Properties
Entries
Gets the collection of log entries.
public ReadOnlyObservableCollection<ITestLogEntry> Entries { get; }
Property Value
LastEntry
Gets the last log entry in Entries.
public ITestLogEntry LastEntry { get; }
Property Value
Remarks
This exists as a convenience for workflow views. Implementers should update this whenever Add(string) is called, raising a PropertyChanged event.
StartDateTime
Gets the start date/time for this log.
public DateTimeOffset StartDateTime { get; }
Property Value
Remarks
This will never change.
Methods
Add(string)
Adds a log entry.
public void Add(string message)
Parameters
message
stringThe log entry message.
Events
PropertyChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged