ConsoleApp1/Services/PersonService.cs
/// <summary>
/// Get person's first and last name by extracting them from random generated Person data for Canada region
/// </summary>
/// <param name="parameters"></param>
/// <returns></returns>
Get person's first and last name by extracting them from random generated Person data for Canada region
Get person ' s first and last name by extracting them from random generated Person data for Canada region
public async Task<(string firstname, string lastname)?> GetCanadaNamesAsync(IDictionary<string, string> parameters = null)
        {
            parameters = parameters ?? new Dictionary<string, string>();
            parameters.Add(DefaultRegionParam.Name, DefaultRegionParam.Value);
            var person = await GetRandomPersonAsync(parameters);
            return person == null ? null : (person.Name, person.Surname);
        }
public async Task < ( string firstname , string lastname ) ? > GetCanadaNamesAsync ( IDictionary < string , string > parameters = null ) { parameters = parameters ?? new Dictionary < string , string > ( ) ; parameters . Add ( DefaultRegionParam . Name , DefaultRegionParam . Value ) ; var person = await GetRandomPersonAsync ( parameters ) ; return person == null ? null : ( person . Name , person . Surname ) ; }
Get person's first and last name by extracting them from random generated Person data for Canada region
Get person ' s first and last name by extracting them from random generated Person data for Canada region
None
parameters
IDictionary<string, string>
None