fit.Test.Double.SampleDomain.GetPeople C# (CSharp) Method

GetPeople() public method

public GetPeople ( string names ) : IEnumerable
names string
return IEnumerable
        public IEnumerable<Person> GetPeople(string[] names)
        {
            return names.Select(n => {
                var split = n.Split('-');
                return new Person(split[0], split[1]);
            });
        }