# Class FakeLockProvider

Namespace
  adas_core.Test.Services

Assembly
  adas-core.Test.dll

Provides a fake implementation of the ILockProvider interface, typically used as a test double or non-functional placeholder.

    public class FakeLockProvider : ILockProvider

Inheritance
  object
  FakeLockProvider

Implements
  ILockProvider

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## Methods

### AcquireAsync(string, TimeSpan)

Asynchronously attempts to acquire a resource identified by the specified key within the given timeout. This implementation always reports a successful acquisition by returning `true`.

    public Task<bool> AcquireAsync(string key, TimeSpan timeout)

#### Parameters

`key` string

  The identifier of the resource to acquire.

`timeout` TimeSpan

  The maximum time to wait for the resource to become available.

#### Returns

Task<bool>

  A Task<TResult> that always completes with `true`, indicating the resource was acquired.

### ReleaseAsync(string)

Releases the resource associated with the specified key. This implementation completes immediately without performing any additional operation.

    public Task ReleaseAsync(string key)

#### Parameters

`key` string

  The identifier of the resource to release.

#### Returns

Task