Ejemplo n.º 1
0
 /// <summary>
 /// Immutable transformation
 /// </summary>
 internal IsotopeState With(
     Option <IWebDriver>?Driver             = null,
     IsotopeSettings Settings               = null,
     HashMap <string, string>?Configuration = null,
     Seq <Error>?Error     = null,
     Log Log               = null,
     Stck <string>?Context = null) =>
 new IsotopeState(
     Driver ?? this.Driver,
     Settings ?? this.Settings,
     Configuration ?? this.Configuration,
     Error ?? this.Error,
     Log ?? this.Log,
     Context ?? this.Context);
Ejemplo n.º 2
0
 /// <summary>
 /// Run the test computation - returning an optional error.
 /// The computation succeeds if result.IsNone is true
 /// </summary>
 /// <param name="ma">Test computation</param>
 public static (IsotopeState state, A value) Run <A>(this Isotope <A> ma, IsotopeSettings settings = null)
 {
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a new instance of IsotopeState with the supplied settings.
 /// </summary>
 public static IsotopeState Create(IsotopeSettings settings) =>
 Empty.With(Settings: settings);