Ejemplo n.º 1
0
        /// <summary>
        /// Removes a name from the collection using the specified index.
        /// </summary>
        /// <param name="index"></param>
        private void RemoveNameAt(int index)
        {
            names[index] = null;

            UpdateListBox();

            PositionInput.Clear();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Fills all fields with dummy data.
        /// <para>Does not fill &lt;End of work&gt;, checks &lt;To present&gt;.</para>
        /// </summary>
        public void FillAllFields()
        {
            //fill start of work
            SelectElement se = new SelectElement(StartOfWorkDropdown_Month);

            se.SelectByIndex(3);
            se = new SelectElement(StartOfWorkDropdown_Year);
            se.SelectByIndex(3);

            //make it present
            CheckBox.Click();

            //fill organization
            OrganizationInput.Clear();
            OrganizationInput.SendKeys("TestOrganization");

            //fill position
            PositionInput.Clear();
            PositionInput.SendKeys("TestOrganization");

            //fill Responsibilities
            ResponsibilitiesInput.Clear();
            ResponsibilitiesInput.SendKeys("TestOrganization");
        }