Esempio n. 1
0
        public override string Next(IGenerationSession session)
        {
            var firstName = _firstNameSource.Next(session);
            var lastName  = _lastNameSource.Next(session);

            return(string.Format("{0} {1}", firstName, lastName));
        }
Esempio n. 2
0
        public void Next_ReturnsString()
        {
            FirstNameSource source = new FirstNameSource();
            String          name   = source.Next(null);

            Assert.NotNull(name);
        }
        public void Next_ReturnsString()
        {
            FirstNameSource source = new FirstNameSource();
            String name = source.Next(null);

            Assert.NotNull(name);
        }
Esempio n. 4
0
        public override string Next(IGenerationContext context)
        {
            var firstName = _firstNameSource.Next(context);

            return(string.Format("{0}{1}@example.com", firstName, ++_index));
        }