- Remove all // and /// comments from the backend test suite. - Replace hardcoded normalized-form string literals (e.g. NormalizedTitle/ NormalizedName duplicating a title/name in upper case) with a variable plus .ToUpperInvariant(), so the two values can't drift apart.
22 lines
711 B
C#
22 lines
711 B
C#
using Musify.Application.Configuration;
|
|
|
|
namespace Musify.Application.Tests.TestSupport
|
|
{
|
|
public static class TestConfigurations
|
|
{
|
|
public static ApplicationStorageConfiguration Storage(string bucket = "test-bucket") =>
|
|
new() { Bucket = bucket };
|
|
|
|
public static TrackConfiguration Track() => new();
|
|
|
|
public static PlayListConfiguration PlayList() => new();
|
|
|
|
public static MixConfiguration Mix() => new();
|
|
|
|
public static UploadIntentConfiguration UploadIntent() => new();
|
|
|
|
public static StreamGatewayConfiguration StreamGateway(string publicBaseUrl = "https://stream.musify.test") =>
|
|
new() { PublicBaseUrl = publicBaseUrl };
|
|
}
|
|
}
|