Namespace Serenity.UnityMusicPlayer.Tests.InterfaceAdapters
Classes
MusicPlayerServiceTestDouble
Reusable spy implementation of IMusicPlayerService for the InterfaceAdapters tests.
Records call counts and the last forwarded arguments so gateway/factory routing can be asserted
without any audio engine or scene. Marked abstract-free so it can be used directly or subclassed.
UnityMusicPlayerGatewayFactoryTests
Tests for UnityMusicPlayerGatewayFactory, which builds a UnityMusicPlayerGateway from a service collection. Verifies the factory contract and that the produced gateway is wired to the supplied services (asserted via routing behavior).
UnityMusicPlayerGatewayTests
Tests for UnityMusicPlayerGateway, which routes music player requests to the registered IMusicPlayerService matching the input's service id. A spy service (MusicPlayerServiceTestDouble) asserts delegation (and the exact arguments forwarded) without any audio engine or scene.