コード例 #1
0
                public IEnumerator <object[]> GetEnumerator()
                {
                    yield return(new object[]
                    {
                        new User
                        {
                            FirstName = null,
                            LastName = null,
                            ProfilePictureUrl = GenerateRandom.String(),
                            Email = GenerateRandom.Email(),
                            PhoneNumber = GenerateRandom.PhoneNumber(),
                            BirthDate = GenerateRandom.DateTime(),
                            Status = GenerateRandom.String()
                        }
                    });

                    yield return(new object[]
                    {
                        new User
                        {
                            FirstName = GenerateRandom.String(),
                            LastName = GenerateRandom.String(),
                            ProfilePictureUrl = GenerateRandom.String(),
                            Email = GenerateRandom.String(),
                            PhoneNumber = GenerateRandom.String(),
                            BirthDate = GenerateRandom.DateTime(),
                            Status = GenerateRandom.String()
                        }
                    });
                }
コード例 #2
0
                public IEnumerator <object[]> GetEnumerator()
                {
                    yield return(new object[]
                    {
                        new List <User>
                        {
                            new User
                            {
                                FirstName = GenerateRandom.String(),
                                LastName = GenerateRandom.String(),
                                ProfilePictureUrl = null,
                                Email = GenerateRandom.Email(),
                                PhoneNumber = GenerateRandom.PhoneNumber(),
                                BirthDate = GenerateRandom.DateTime(),
                                Status = null
                            }
                        },
                        new List <int> {
                            1
                        }
                    });

                    yield return(new object[]
                    {
                        new List <User>
                        {
                            new User
                            {
                                FirstName = GenerateRandom.String(),
                                LastName = GenerateRandom.String(),
                                ProfilePictureUrl = null,
                                Email = GenerateRandom.Email(),
                                PhoneNumber = GenerateRandom.PhoneNumber(),
                                BirthDate = GenerateRandom.DateTime(),
                                Status = null
                            },
                            new User
                            {
                                FirstName = GenerateRandom.String(),
                                LastName = GenerateRandom.String(),
                                ProfilePictureUrl = null,
                                Email = GenerateRandom.Email(),
                                PhoneNumber = GenerateRandom.PhoneNumber(),
                                BirthDate = GenerateRandom.DateTime(),
                                Status = null
                            },
                            new User
                            {
                                FirstName = GenerateRandom.String(),
                                LastName = GenerateRandom.String(),
                                ProfilePictureUrl = null,
                                Email = GenerateRandom.Email(),
                                PhoneNumber = GenerateRandom.PhoneNumber(),
                                BirthDate = GenerateRandom.DateTime(),
                                Status = null
                            }
                        },
                        new List <int>
                        {
                            GenerateRandom.Int(1, 3),
                            GenerateRandom.Int(1, 3)
                        }
                    });
                }
コード例 #3
0
                public IEnumerator <object[]> GetEnumerator()
                {
                    string target = GenerateRandom.Email();

                    yield return(new object[]
                    {
                        new List <User>
                        {
                            new User
                            {
                                FirstName = GenerateRandom.String(),
                                LastName = GenerateRandom.String(),
                                ProfilePictureUrl = null,
                                Email = target,
                                PhoneNumber = GenerateRandom.PhoneNumber(),
                                BirthDate = GenerateRandom.DateTime(),
                                Status = null
                            }
                        },
                        target
                    });

                    target = GenerateRandom.Email();
                    yield return(new object[]
                    {
                        new List <User>
                        {
                            new User
                            {
                                FirstName = GenerateRandom.String(),
                                LastName = GenerateRandom.String(),
                                ProfilePictureUrl = null,
                                Email = target,
                                PhoneNumber = GenerateRandom.PhoneNumber(),
                                BirthDate = GenerateRandom.DateTime(),
                                Status = null
                            },
                            new User
                            {
                                FirstName = GenerateRandom.String(),
                                LastName = GenerateRandom.String(),
                                ProfilePictureUrl = null,
                                Email = GenerateRandom.Email(),
                                PhoneNumber = GenerateRandom.PhoneNumber(),
                                BirthDate = GenerateRandom.DateTime(),
                                Status = null
                            },
                            new User
                            {
                                FirstName = GenerateRandom.String(),
                                LastName = GenerateRandom.String(),
                                ProfilePictureUrl = null,
                                Email = GenerateRandom.Email(),
                                PhoneNumber = GenerateRandom.PhoneNumber(),
                                BirthDate = GenerateRandom.DateTime(),
                                Status = null
                            }
                        },
                        target
                    });
                }