public CheckboxLocator(Enum identifier, Fragment parent) : base(identifier, parent)
 {
 }
Beispiel #2
0
 public TextLocator(Enum identifier, Fragment parent) : base(identifier, parent)
 {
 }
Beispiel #3
0
 public RadioLocator(Enum identifier, Fragment parent)
     : base(identifier, parent)
 {
 }
Beispiel #4
0
 protected Fragment(Enum identifier, Fragment parent = null)
     : base(identifier, parent)
 {
     Children = new Dictionary <Enum, Locator>();
     Populate();
 }
Beispiel #5
0
 /// <summary>
 /// Get the Enum that identify the fragment. In another words, each fragment type shall contain at least one
 /// Enum entry whose IsFragment() == true.
 /// </summary>
 /// <param name="fragment">Instance of the specific Fragment type.</param>
 /// <returns>The first Enum whose IsFragment() is "true".</returns>
 public static Enum GetFragmentId(Fragment fragment)
 {
     return(GetNestedElementIds(fragment.GetType()).FirstOrDefault(x => x.IsFragment()));
 }
Beispiel #6
0
 protected Locator(Enum identifier, Fragment parent = null)
 {
     Identifier = identifier;
     Parent     = parent;
 }