Exemplo n.º 1
0
 public Attendee()
 {
     ObjectHelper.SetDefaultValues(this);
     this.Name        = RandomDataHelper.GetRandomString(5);
     this.SurName     = RandomDataHelper.GetRandomString(5);
     this.Email       = RandomDataHelper.GetRandomMail();
     this.PhoneNumber = RandomDataHelper.GetRandomNumber(9);
 }
Exemplo n.º 2
0
        public SessionData()
        {
            ObjectHelper.SetDefaultValues(this);
            var rand = new Random();

            this.SessionDate         = DateTime.Now.AddDays(rand.Next(1, 30)).AddHours(rand.Next(1, 12));
            this.ProposedSessionDate = this.SessionDate;
            this.Address             = RandomDataHelper.GetRandomString(5);
            this.City     = RandomDataHelper.GetRandomString(8);
            this.PostCode = string.Format("0{0}-{1}", RandomDataHelper.GetRandomNumber(1), RandomDataHelper.GetRandomNumber(3));
            this.Comment  = string.Format("A-Team {0}", DateTime.Now);
        }
Exemplo n.º 3
0
 public ContactData()
 {
     ObjectHelper.SetDefaultValues(this);
     this.PersonDataName     = RandomDataHelper.GetRandomString(5);
     this.PersonDataSurname  = RandomDataHelper.GetRandomString(5);
     this.PersonDataPhone    = RandomDataHelper.GetRandomNumber(9);
     this.PersonDataEmail    = RandomDataHelper.GetRandomMail();
     this.ContactName        = RandomDataHelper.GetRandomString(5);
     this.ContactSurname     = RandomDataHelper.GetRandomString(5);
     this.ContactAddress     = RandomDataHelper.GetRandomString(5);
     this.ContactCity        = string.Format("Waw{0}", RandomDataHelper.GetRandomString(5));
     this.ContactPostCode    = string.Format("0{0}-{1}", RandomDataHelper.GetRandomNumber(1), RandomDataHelper.GetRandomNumber(3));
     this.InvoiceCompanyName = RandomDataHelper.GetRandomString(5);
     this.InvoiceEmail       = RandomDataHelper.GetRandomMail();
     this.InvoiceAddress     = RandomDataHelper.GetRandomString(5);
     this.InvoiceCity        = string.Format("Waw{0}", RandomDataHelper.GetRandomString(5));
     this.InvoicePostalCode  = string.Format("0{0}-{1}", RandomDataHelper.GetRandomNumber(1), RandomDataHelper.GetRandomNumber(3));
     this.LetterCompanyName  = RandomDataHelper.GetRandomString(5);
     this.LetterAddress      = RandomDataHelper.GetRandomString(5);
     this.LetterCity         = string.Format("Waw{0}", RandomDataHelper.GetRandomString(5));
     this.LetterPostalCode   = string.Format("0{0}-{1}", RandomDataHelper.GetRandomNumber(1), RandomDataHelper.GetRandomNumber(3));
     this.Comment            = string.Format("A-Team {0}", DateTime.Now);
     this.InvoiceNip         = RandomDataHelper.GetRandomNip();
 }