Esempio n. 1
0
        public static Email GetEmail()
        {
            var mock = new Faker <Email>()
                       .CustomInstantiator(p => new Email(
                                               p.Person.Email,
                                               p.Person.Email,
                                               p.Lorem.Sentences(10),
                                               ProjectMock.GetProject(),
                                               p.Name.JobTitle()
                                               ));

            return(mock.Generate());
        }
Esempio n. 2
0
        public static Template GetTemplate()
        {
            var mock = new Faker <Template>()
                       .CustomInstantiator(p => new Template(
                                               p.Random.String(20),
                                               p.Random.String(200),
                                               p.Lorem.Text(),
                                               ProjectMock.GetProject(),
                                               p.Random.String(10),
                                               p.Person.Email
                                               ));

            return(mock.Generate());
        }