mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-26 15:57:58 +01:00
* Renames Spectre.Cli to Spectre.Console.Cli. * Now uses Verify with Spectre.Console.Cli tests. * Removes some duplicate definitions. Closes #168
18 lines
372 B
C#
18 lines
372 B
C#
namespace Spectre.Console.Testing
|
|
{
|
|
public sealed class FakeLinkIdentityGenerator : ILinkIdentityGenerator
|
|
{
|
|
private readonly int _linkId;
|
|
|
|
public FakeLinkIdentityGenerator(int linkId)
|
|
{
|
|
_linkId = linkId;
|
|
}
|
|
|
|
public int GenerateId(string link, string text)
|
|
{
|
|
return _linkId;
|
|
}
|
|
}
|
|
}
|