Exemple #1
0
        public static DeveloperFake New()
        {
            _faker = FakerBuilder.New().Build();

            return(new DeveloperFake()
            {
                _id = _faker.Random.Long(min: 1)
            });
        }
Exemple #2
0
        public static DeveloperPreferenceFake New()
        {
            _faker = FakerBuilder.New().Build();

            return new DeveloperPreferenceFake()
            {
                _id = _faker.Random.Long(min: 1),
                _developerId = _faker.Random.Long(min: 1)
            };
        }
Exemple #3
0
        public static WorkTime Build()
        {
            var _fakerBuilder = FakerBuilder.New().Build();

            return(new WorkTime(_fakerBuilder.Random.Bool(),
                                _fakerBuilder.Random.Bool(),
                                _fakerBuilder.Random.Bool(),
                                _fakerBuilder.Random.Bool(),
                                _fakerBuilder.Random.Bool()));
        }
Exemple #4
0
        public static Willingness Build()
        {
            var _fakerBuilder = FakerBuilder.New().Build();

            return(new Willingness(_fakerBuilder.Random.Bool(),
                                   _fakerBuilder.Random.Bool(),
                                   _fakerBuilder.Random.Bool(),
                                   _fakerBuilder.Random.Bool(),
                                   _fakerBuilder.Random.Bool()));
        }
Exemple #5
0
        public Developer Build()
        {
            var _fakerBuilder = FakerBuilder.New().Build();

            return(new Developer(
                       _id,
                       _fakerBuilder.Person.Email,
                       _fakerBuilder.Person.FullName,
                       "",
                       _fakerBuilder.Random.Decimal(0, 1000),
                       ContactFake.Build(),
                       AddressFake.Build(),
                       DeveloperPreferenceFake.New().ApplyDeveloperId(_id).Build(),
                       DeveloperSkillsFake.New().ApplyDeveloperId(_id).Build()));
        }
Exemple #6
0
        public static Knowledge Build()
        {
            var _fakerBuilder = FakerBuilder.New().Build();

            return(new Knowledge(
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5),
                       (Weight)_fakerBuilder.Random.Int(0, 5)));
        }
Exemple #7
0
        public static Contact Build()
        {
            var _fakerBuilder = FakerBuilder.New().Build();

            return(new Contact(_fakerBuilder.Person.Phone, ""));
        }
Exemple #8
0
        public static Address Build()
        {
            var _fakerBuilder = FakerBuilder.New().Build();

            return(new Address(_fakerBuilder.Address.City(), _fakerBuilder.Address.State()));
        }