Beispiel #1
0
        public static ContactDataObject Generate_random_contact()
        {
            ContactDataObject contact = new ContactDataObject();

            contact.Company = Faker.Company.BS();
            contact.FName   = Faker.Name.First();
            contact.LName   = Faker.Name.Last();
            contact.Region  = Faker.Address.Country();
            contact.Id      = MADE_UP_ID;

            return(contact);
        }
Beispiel #2
0
 /*
  * This method is a stub. It DELETES NOTHING FROM A DATABASE!
  * It simply returns true to simulate having deleted actual data.
  *
  * This is just meant to show you how a helper/support library
  * might work.
  *
  * Did I mention this doesn't delete anything from a database???
  */
 public static bool Delete_contact_by_id(ContactDataObject contact)
 {
     return(true);
 }
Beispiel #3
0
 /*
  * This method is a stub. It RETRIVES NOTHING FROM A DATABASE!
  * It's meant to simulate querying the DB by ID and returning
  * that contact.
  *
  * This is just meant to show you how a helper/support library
  * might work.
  *
  * Did I mention this doesn't get anything from a database???
  */
 public static ContactDataObject Return_contact_by_id(ContactDataObject contact)
 {
     return(contact);
 }