# Class RecordingServiceTest

Namespace
  adas_core.Test.Services

Assembly
  adas-core.Test.dll

    [TestFixture]
    public class RecordingServiceTest

Inheritance
  object
  RecordingServiceTest

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

### GetRecordings_Return_Empty()

Verifies that GetRecordings(int) returns an empty collection of RecordingData when the HTTP response indicates an unauthorized (401) status, ensuring the service correctly handles failed authentication scenarios by yielding no recordings rather than throwing or returning null.

    [Test]
    public Task GetRecordings_Return_Empty()

#### Returns

Task

### GetRecordings_Return_RecordingData()

Verifies that GetRecordings(int) returns the expected RecordingData list when the HTTP endpoint responds with a successful payload containing a recording and its associated patient. Asserts that the returned items match the source data for status, room identifier, and patient identity fields.

    [Test]
    public Task GetRecordings_Return_RecordingData()

#### Returns

Task

### SaveRequest()

Tests that calling `SaveRequest` on the recording service throws a NotImplementedException when supplied with an ApiRequest, using a mocked HTTP message handler that returns a successful response.

    [Test]
    public Task SaveRequest()

#### Returns

Task

### Setup()

Sets up the test environment for RecordingService by initializing configuration options, creating mock dependencies (logger, HTTP client factory, publisher, authentication, client message, subscribers, and patient services), and configuring the publisher mock to successfully send both regular messages and errors.

    [SetUp]
    public void Setup()