Method Create
Create(ITimeProvider?)
Creates a new IApplication instance.
public static IApplication Create(ITimeProvider? timeProvider = null)
Parameters
timeProviderITimeProviderOptional time provider for controlling time in tests. If null, defaults to SystemTimeProvider. For production use, omit this parameter or pass null. For testing, pass a VirtualTimeProvider.
Returns
- IApplication
A new IApplication instance.
Remarks
The recommended pattern is for developers to call Application.Create() and then use the returned
IApplication instance for all subsequent application operations.
Exceptions
- InvalidOperationException
Thrown if the legacy static Application model has already been used in this process.