Example #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);
 }
Example #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);
        }
Example #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();
 }
Example #4
0
        public void Populate(SessionData d)
        {
            WebDriverExtensions.WaitForAjax(driver);
            this.ProposedDate.SendKeys(d.SessionDate.ToString("dd.MM.yyyy HH:mm"));
            if (d.SetSpecificLocation)
            {
                this.SetSpecificLocation.Click();
                this.PostCode.Click();
                this.PostCode.Clear();
                this.PostCode.SendKeys(d.PostCode);
                this.City.SendKeys(d.City);
                this.Address.SendKeys(d.Address);
            }
            else
            {
                this.ProposedDate.SendKeys(d.SessionDate.ToString("dd.MM.yyyy HH:mm"));
                this.NoSpecificLocation.Click();
            }

            this.AdditionalInformation.SendKeys(string.Format("Additional information: {0}", RandomDataHelper.GetRandomString(10)));
        }