Ready to test
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
using System.Text;
|
||||
|
||||
namespace View_by_Distance.Shared.Models.Stateless.Methods;
|
||||
|
||||
internal abstract class PersonName
|
||||
@ -57,4 +59,16 @@ internal abstract class PersonName
|
||||
return result;
|
||||
}
|
||||
|
||||
internal static string GetFullName(Models.PersonName personName)
|
||||
{
|
||||
StringBuilder result = new();
|
||||
if (personName.First is not null)
|
||||
_ = result.Append(personName.First.Value);
|
||||
if (personName.Middle is not null)
|
||||
_ = result.Append(' ').Append(personName.Middle.Value);
|
||||
if (personName.Last is not null)
|
||||
_ = result.Append(' ').Append(personName.Last.Value);
|
||||
return result.ToString();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user