# TimeProviderTestingExtensions

Package: [Microsoft.Orleans.TestingHost](/orleans/docs/api/csharp/microsoft.orleans.testinghost/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.TestingHost) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/TimeProviderTestingExtensions.cs#L11)

```csharp
public static class TimeProviderTestingExtensions
```

Test helpers for overriding the per-area `System.TimeProvider` instances resolved via keyed dependency injection. See [TimeProviderNames](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.timeprovidernames/).

## Methods

- [UseTimeProviderForBackgroundAreas(IServiceCollection, TimeProvider)](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.timeprovidertestingextensions/methods/usetimeproviderforbackgroundareas-this-microsoft-extensions-dependencyinjection-7c107389/)
