Пример #1
0
        public override FakeRow Populate(GDID parentGdid)
        {
            int age = getFakeAge(parentGdid);

            ID          = parentGdid;
            Name        = NaturalTextGenerator.GenerateFullName(true);
            Age         = age;
            DOB         = DateTime.Now.AddYears(-age);
            Sex         = parentGdid.ID % 2 == 0 ? Sex.Male : Sex.Female;
            Income      = parentGdid.ID % 79 * 1000;
            Debt        = parentGdid.ID % 11 * 1000;
            Rating      = parentGdid.ID % 2 == 0 ? (double?)null : 3.25;
            Notes       = parentGdid.ToString();
            Voter       = parentGdid.ID % 2 == 0 ? (bool?)null : true;
            MilitarySvc = parentGdid.ID % 2 == 0 ? (bool?)null : false;
            Address1    = NaturalTextGenerator.GenerateAddressLine();
            Address2    = parentGdid.ID % 7 == 0 ? NaturalTextGenerator.GenerateAddressLine() : null;
            City        = NaturalTextGenerator.GenerateCityName();
            State       = "OH";
            Zip         = "44000" + parentGdid.ID % 999;
            Phone1      = "(555) 222-3222";
            Phone2      = parentGdid.ID % 3 == 0 ? "(555) 737-9789" : null;
            Email1      = NaturalTextGenerator.GenerateEMail();
            Email2      = parentGdid.ID % 5 == 0 ? NaturalTextGenerator.GenerateEMail() : null;
            URL         = parentGdid.ID % 2 == 0 ? "https://ibm.com/products/" + parentGdid.ID : null;
            Tags        = getFakeTags();
            return(this);
        }
Пример #2
0
 public void GenerateFulltNames_withMiddle()
 {
     for (var i = 0; i < 100; i++)
     {
         var txt = NaturalTextGenerator.GenerateFullName(true);
         Console.WriteLine(txt);
         Assert.IsTrue(txt.IsNotNullOrWhiteSpace());
         Assert.IsTrue(txt.Length >= 6);
         Assert.IsTrue(txt.Length <= 40);
     }
 }
Пример #3
0
 public static RDM_RemittanceDeliveryMethod Make()
 {
     return(new RDM_RemittanceDeliveryMethod
     {
         Report_Transmission_Code = NaturalTextGenerator.GenerateWord(),
         Name = NaturalTextGenerator.GenerateFullName(),
         Communication_Number = NaturalTextGenerator.GenerateEMail(),
         Info1 = NaturalTextGenerator.Generate(50),
         Info2 = NaturalTextGenerator.Generate(20)
     });
 }
Пример #4
0
 public static N1_PartyIdentification Make()
 {
     return(new N1_PartyIdentification
     {
         Entity_Identifier_Code = "TY",
         Name = NaturalTextGenerator.GenerateFullName(),
         Identification_Code_Qualifier = "CU",
         Identification_Code = NaturalTextGenerator.GenerateWord(),
         Entity_Relationship_Code = NaturalTextGenerator.GenerateWord(),
         Entity_Identifier_Code2 = NaturalTextGenerator.GenerateWord()
     });
 }
Пример #5
0
 public override FakeRow Populate(GDID parentGdid)
 {
     ID          = parentGdid;
     DisplayName = NaturalTextGenerator.GenerateFullName(true);
     FromEmail   = NaturalTextGenerator.GenerateEMail();
     ToEmail     = NaturalTextGenerator.GenerateEMail();
     CcEmail     = parentGdid.ID % 5 == 0 ? NaturalTextGenerator.GenerateEMail() : null;
     BccEmail    = parentGdid.ID % 10 == 0 ? NaturalTextGenerator.GenerateEMail() : null;
     Host        = $"127.0.0.{Ambient.Random.NextScaledRandomInteger(1, 20)}";
     Tags        = getFakeTags();
     SentDate    = DateTime.Now.AddHours(Ambient.Random.NextScaledRandomInteger(1, 12)).AddMinutes(Ambient.Random.NextScaledRandomInteger(1, 60));
     Subject     = NaturalTextGenerator.Generate(50);
     Body        = NaturalTextGenerator.Generate(0);
     return(this);
 }
Пример #6
0
 public static PER_ClaimContactInformation Make()
 {
     return(new PER_ClaimContactInformation
     {
         Contact_Function_Code = "CFC",
         Name = NaturalTextGenerator.GenerateFullName(),
         Communication_Number_Qualifier = "DL",
         Communication_Numbers =
             new List <string>
         {
             NaturalTextGenerator.GenerateEMail(),
             NaturalTextGenerator.GenerateEMail(),
             NaturalTextGenerator.GenerateEMail()
         },
         Contact_Inquiry_Reference = NaturalTextGenerator.GenerateWord()
     });
 }
Пример #7
0
 public static NM1_PartyName Make()
 {
     return(new NM1_PartyName
     {
         Entity_Identifier_Code = "EI",
         Entity_Type_Qualifier = "QQ",
         Name_Last_or_Organization_Name = NaturalTextGenerator.GenerateFullName(),
         Name_First = NaturalTextGenerator.GenerateFirstName(),
         Name_Middle = NaturalTextGenerator.GenerateFirstName(),
         Name_Prefix = "Mrs.",
         Name_Suffix = "Jr",
         Identification_Code_Qualifier = "CQ",
         Identification_Code = NaturalTextGenerator.GenerateWord(),
         Entity_Relationship_Code = NaturalTextGenerator.GenerateWord(),
         Entity_Identifier_Code2 = NaturalTextGenerator.GenerateWord(),
         Name_Last_or_Organization_Name2 = NaturalTextGenerator.GenerateLastName()
     });
 }