Table of Contents

Method AddPrimeTestClock

Namespace
KZDev.PrimeTime.Testing
Assembly
KZDev.PrimeTime.Testing.dll

AddPrimeTestClock(IServiceCollection)

Adds the default virtual test clock implementation (PrimeTestClock) as a singleton in the service collection, registers IPrimeClock and IPrimeTime to resolve to the same singleton test clock.

public static IServiceCollection AddPrimeTestClock(this IServiceCollection services)

Parameters

services IServiceCollection

The IServiceCollection to add the service to.

Returns

IServiceCollection

The IServiceCollection for chaining further registrations.

Exceptions

ArgumentNullException

services is null.