コード例 #1
0
 public FriendBuilder()
 {
     _faker    = FakerPtbr.CreateFaker();
     _instance = new Friend
     {
         Name        = _faker.Random.String(),
         PhoneNumber = _faker.Random.String()
     };
 }
コード例 #2
0
 public LoanBuilder()
 {
     _faker    = FakerPtbr.CreateFaker();
     _instance = new Loan
     {
         GameId   = _faker.Random.Guid(),
         FriendId = _faker.Random.Guid()
     };
 }
コード例 #3
0
 public ProductBuilder()
 {
     _faker    = FakerPtbr.CreateFaker();
     _instance = new Produto
     {
         Id    = _faker.Random.Guid(),
         Nome  = _faker.Random.String(),
         Valor = _faker.Random.Decimal()
     };
 }
コード例 #4
0
 public GameBuilder()
 {
     _faker    = FakerPtbr.CreateFaker();
     _instance = new Game
     {
         Title       = _faker.Random.String(),
         Description = _faker.Random.String(),
         Genre       = _faker.Random.String(),
         Platform    = _faker.Random.String()
     };
 }