private static string CreateCurrencyFactory(Iso4217Record record) { var identifier = Identifier(record.AlphabeticCurrencyCode); return($"{Indent}{Indent}/// <summary>Creates a new <see cref=\"Money\" /> instance using the <see cref=\"Currency.{identifier}\" /> currency.</summary>{NewLine}" + $"{Indent}{Indent}public static Money {identifier}(decimal amount){NewLine}" + $"{Indent}{Indent} => new(amount, MoneyEvaluationContext.Builder.Default.WithTargetCurrency(Currency.{identifier}).Build());"); }
private static StringBuilder AppendCurrencyFactory(StringBuilder stringBuilder, Iso4217Record record) => stringBuilder.Append(CreateCurrencyFactory(record));