public override string Next(IGenerationSession session) { var firstName = _firstNameSource.Next(session); var lastName = _lastNameSource.Next(session); return(string.Format("{0} {1}", firstName, lastName)); }
public void Next_ReturnsString() { FirstNameSource source = new FirstNameSource(); String name = source.Next(null); Assert.NotNull(name); }
public override string Next(IGenerationContext context) { var firstName = _firstNameSource.Next(context); return(string.Format("{0}{1}@example.com", firstName, ++_index)); }