Table of Contents

Class TestLog

Namespace
Acuit.Pinpoint.Workflows.Testing
Assembly
Acuit.Pinpoint.Workflows.Testing.dll

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

ReadOnlyObservableCollection<ITestLogEntry>

LastEntry

Gets the last log entry in Entries.

public ITestLogEntry LastEntry { get; }

Property Value

ITestLogEntry

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

DateTimeOffset

Remarks

This will never change.

Methods

Add(string)

Adds a log entry.

public void Add(string message)

Parameters

message string

The log entry message.

Events

PropertyChanged

Occurs when a property value changes.

public event PropertyChangedEventHandler PropertyChanged

Event Type

PropertyChangedEventHandler