Namespace Serenity.UnityMusicPlayer.Tests.InterfaceAdapters
Classes
MusicPlayerServiceTestDouble
Reusable spy implementation of Serenity.MusicPlayer.Application.Interfaces.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 Serenity.MusicPlayer.InterfaceAdapters.Gateways.Factories.UnityMusicPlayerGatewayFactory, which builds a Serenity.MusicPlayer.InterfaceAdapters.Gateways.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 Serenity.MusicPlayer.InterfaceAdapters.Gateways.UnityMusicPlayerGateway, which routes music player requests to the registered Serenity.MusicPlayer.Application.Interfaces.IMusicPlayerService matching the input's service id. A spy service (MusicPlayerServiceTestDouble) asserts delegation (and the exact arguments forwarded) without any audio engine or scene.