Skip to content

[Doc] Reference FakeTimeProvider in xml comments to TimeProvider class. #10081

@voroninp

Description

@voroninp

Background and motivation

Testability is a motivation for introduction of TimeProvider class, thus it would be benefitial for the developers to find out about extras from the documntation.

Curruntly there is no mentioning of FakeTimeProvider class in xmldoc.

API Proposal

I propose to add <remarks> section which will cotnain something like the following:

/// <summary>Provides an abstraction for time.</summary>
/// <remarks>Use FakeTimeProvider class from package Microsoft.Extensions.TimeProvider.Testing for convenient testing.</remarks>
public abstract class TimeProvider

API Usage

N/A

Alternative Designs

No response

Risks

If you ever change the name of the FakeTimeProvider or its package, documentation will become stale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions