mirror of
https://github.com/bitwarden/server
synced 2026-01-06 10:34:01 +00:00
Resolve review feedback
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
namespace Bit.Seeder;
|
||||
|
||||
/// <summary>
|
||||
/// Helper for mangling IDs
|
||||
/// Helper for generating unique identifier suffixes to prevent collisions in test data.
|
||||
/// "Mangling" adds a random suffix to test data identifiers (usernames, emails, org names, etc.)
|
||||
/// to ensure uniqueness across multiple test runs and parallel test executions.
|
||||
/// </summary>
|
||||
public class MangleId
|
||||
{
|
||||
|
||||
@@ -1,8 +1,17 @@
|
||||
namespace Bit.Seeder;
|
||||
|
||||
/// <summary>
|
||||
/// Helper for exposing a <see cref="IScene" /> interface with a SeedAsync method.
|
||||
/// </summary>
|
||||
public class SceneResult(Dictionary<string, string?> mangleMap)
|
||||
: SceneResult<object?>(result: null, mangleMap: mangleMap);
|
||||
|
||||
/// <summary>
|
||||
/// Generic result from executing a Scene.
|
||||
/// Contains custom scene-specific data and a mangle map that maps magic strings from the
|
||||
/// request to their mangled (collision-free) values inserted into the database.
|
||||
/// </summary>
|
||||
/// <typeparam name="TResult">The type of custom result data returned by the scene.</typeparam>
|
||||
public class SceneResult<TResult>(TResult result, Dictionary<string, string?> mangleMap)
|
||||
{
|
||||
public TResult Result { get; init; } = result;
|
||||
|
||||
Reference in New Issue
Block a user