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

            return(new DeveloperFake()
            {
                _id = _faker.Random.Long(min: 1)
            });
        }
示例#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)
            };
        }
示例#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()));
        }
示例#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()));
        }
示例#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()));
        }
示例#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)));
        }
示例#7
0
        public static Contact Build()
        {
            var _fakerBuilder = FakerBuilder.New().Build();

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

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