Ejemplo n.º 1
0
 /// <summary>
 /// Creates a question returning the <see cref="IWebElement"/> value as a DateTime
 /// </summary>
 /// <typeparam name="TState"></typeparam>
 /// <param name="state"></param>
 /// <returns></returns>
 public static IQuestion <DateTime> AsDateTime <TState>(this SingleUIState <IWebElement, TState> state) where TState : SingleUIState <IWebElement, TState>
 {
     return(state.As(DateTimeConverter));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a question returning the <see cref="IWebElement"/> value as a boolean
 /// </summary>
 /// <typeparam name="TState"></typeparam>
 /// <param name="state"></param>
 /// <returns></returns>
 public static IQuestion <bool> AsBoolean <TState>(this SingleUIState <IWebElement, TState> state) where TState : SingleUIState <IWebElement, TState>
 {
     return(state.As(BooleanConverter));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a question returning the <see cref="IWebElement"/> value as an integer
 /// </summary>
 /// <typeparam name="TState"></typeparam>
 /// <param name="state"></param>
 /// <returns></returns>
 public static IQuestion <int> AsInteger <TState>(this SingleUIState <IWebElement, TState> state) where TState : SingleUIState <IWebElement, TState>
 {
     return(state.As(IntegerConverter));
 }
Ejemplo n.º 4
0
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member

        #region Single

        /// <summary>
        /// Creates a question returning the <see cref="IWebElement"/> value as a string
        /// </summary>
        /// <typeparam name="TState"></typeparam>
        /// <param name="state"></param>
        /// <returns></returns>
        public static IQuestion <string> AsText <TState>(this SingleUIState <IWebElement, TState> state) where TState : SingleUIState <IWebElement, TState>
        {
            return(state.As(TextConverter));
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Creates a question returning the string value as an enum
 /// </summary>
 /// <typeparam name="TState">The type of the state</typeparam>
 /// <typeparam name="T">The type of the enum</typeparam>
 /// <param name="state">The source state</param>
 /// <returns></returns>
 public static IQuestion <T> AsEnum <TState, T>(this SingleUIState <string, TState> state)
     where TState : SingleUIState <string, TState>
     where T : struct
 {
     return(state.As(new StringToEnumConverter <T>()));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Creates a question returning the string value as an integer
 /// </summary>
 /// <typeparam name="TState">The type of the state</typeparam>
 /// <param name="state">The source state</param>
 /// <returns></returns>
 public static IQuestion <double> AsDouble <TState>(this SingleUIState <string, TState> state) where TState : SingleUIState <string, TState>
 {
     return(state.As(DoubleConverter));
 }