Class 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.
Inherited Members
Namespace: Serenity.UnityMusicPlayer.Tests.InterfaceAdapters
Assembly: Tests.dll
Syntax
public class UnityMusicPlayerGatewayTests
Constructors
UnityMusicPlayerGatewayTests()
Declaration
public UnityMusicPlayerGatewayTests()
Methods
Gateway_ImplementsIMusicPlayerGateway()
Declaration
public void Gateway_ImplementsIMusicPlayerGateway()
PauseSong_RoutesToServiceMatchingServiceId()
Declaration
public void PauseSong_RoutesToServiceMatchingServiceId()
PauseSong_UnknownServiceId_Throws()
Declaration
public void PauseSong_UnknownServiceId_Throws()
PlayNextSong_RoutesToService()
Declaration
public void PlayNextSong_RoutesToService()
PlayPreviousSong_RoutesToService()
Declaration
public void PlayPreviousSong_RoutesToService()
PlaySongById_ForwardsAllArguments()
Declaration
public void PlaySongById_ForwardsAllArguments()
PlaySong_ForwardsTransitionTypeAndDuration()
Declaration
public void PlaySong_ForwardsTransitionTypeAndDuration()
PlaySong_UnknownServiceId_Throws()
Declaration
public void PlaySong_UnknownServiceId_Throws()
ResumeSong_RoutesToService()
Declaration
public void ResumeSong_RoutesToService()
Routing_WithMultipleServices_SelectsCorrectOne()
Declaration
public void Routing_WithMultipleServices_SelectsCorrectOne()
StopSong_RoutesToService()
Declaration
public void StopSong_RoutesToService()