1
0
mirror of https://github.com/bitwarden/server synced 2026-02-12 14:33:49 +00:00
Files
server/util/Seeder/Services/IManglerService.cs

25 lines
699 B
C#

namespace Bit.Seeder.Services;
/// <summary>
/// Service for mangling strings to ensure test isolation and collision-free data.
/// </summary>
public interface IManglerService
{
/// <summary>
/// Mangles a string value for test isolation.
/// Automatically tracks the original → mangled mapping.
/// </summary>
string Mangle(string value);
/// <summary>
/// Returns a copy of tracked mangle mappings (original → mangled).
/// Used by Scenes to populate SceneResult.MangleMap.
/// </summary>
Dictionary<string, string?> GetMangleMap();
/// <summary>
/// Indicates whether mangling is enabled.
/// </summary>
bool IsEnabled { get; }
}