public Construct(ConstructSymbol <T> .Simple symbol) { if (symbol == null) { throw AutoInitAttribute.ArgumentNullException(typeof(ConstructSymbol <T> .Simple), nameof(symbol)); } this.operationSymbol = symbol.Symbol; }
public ConstructFromMany(ConstructSymbol <T> .FromMany <F> symbol) { if (symbol == null) { throw AutoInitAttribute.ArgumentNullException(typeof(ConstructSymbol <T> .FromMany <F>), nameof(symbol)); } this.operationSymbol = symbol.Symbol; this.baseType = symbol.BaseType; }
public ConstructFrom(ConstructSymbol <T> .From <F> symbol) { if (symbol == null) { throw AutoInitAttribute.ArgumentNullException(typeof(ConstructSymbol <T> .From <F>), nameof(symbol)); } this.Symbol = symbol; this.Lite = true; }
public static FluentInclude <T> WithConstruct <T>(this FluentInclude <T> fi, ConstructSymbol <T> .Simple construct) where T : Entity, new() { new Graph <T> .Construct(construct) { Construct = (_) => new T() } .Register(); return(fi); }
public static FluentInclude <T> WithConstruct <T>(this FluentInclude <T> fi, ConstructSymbol <T> .Simple construct, Func <object[], T> constructFunction) where T : Entity { new Graph <T> .Construct(construct) { Construct = constructFunction } .Register(); return(fi); }
public FrameModalProxy <T> ConstructFrom <F, T>(ConstructSymbol <T> .From <F> constructSymbol, bool shouldDisapear = false) where F : Entity where T : Entity { var lites = ResultTable.SelectedEntities(); var modal = Operation(constructSymbol).WaitVisible().CaptureOnClick(); var result = new FrameModalProxy <T>(modal); result.Disposing += okPressed => { if (shouldDisapear) { ResultTable.WaitNoVisible(lites); } else { ResultTable.WaitSuccess(lites); } }; return(result); }
public static new ConstructFromMany <F> Untyped <B>(ConstructSymbol <B> .FromMany <F> symbol) where B : class, IEntity { return(new ConstructFromMany <F>(symbol.Symbol, symbol.BaseType)); }
public ConstructFromMany(ConstructSymbol <T> .FromMany <F> symbol) : base(symbol) { ToStates = new List <S>(); }
public ConstructFrom(ConstructSymbol <T> .From <F> symbol) : base(symbol) { }
public static FramePageProxy <T> ConstructFromNormalPage <F, T>(this IEntityButtonContainer <F> container, ConstructSymbol <T> .From <F> symbol) where T : Entity where F : Entity { container.OperationClick(symbol); container.Element.GetDriver().Wait(() => { try { return(container.EntityInfo().IsNew); } catch { return(false); } }); return(new FramePageProxy <T>(container.Element.GetDriver())); }
public static T Construct <T>(ConstructSymbol <T> .Simple symbol, params object[] args) where T : class, IEntity { return((T)(IEntity)Server.Return((IOperationServer s) => s.Construct(typeof(T), symbol.Symbol, args))); }
public static NormalPage <T> ConstructFromNormalPageNew <F, T>(this IEntityButtonContainer <F> container, ConstructSymbol <T> .From <F> symbol) where T : Entity where F : Entity { container.OperationClick(symbol); container.Selenium.Wait(() => { try { return(container.RuntimeInfo().IsNew); } catch { return(false); } }); return(new NormalPage <T>(container.Selenium, null)); }
public static ConstructorOperationSettings <T> GetConstructorSettings <T>(ConstructSymbol <T> .Simple operation) where T : class, IEntity { return(Manager.GetSettings <ConstructorOperationSettings <T> >(typeof(T), operation.Symbol)); }
public Construct(ConstructSymbol <T> .Simple symbol) : base(symbol) { ToStates = new List <S>(); }
public PackageConstructFromAlgorithm(ConstructSymbol <T> .From <F> symbol) { this.Symbol = symbol; }
public static void ConstructProcessWait <T>(this NormalWindowProxy <T> normalWindow, ConstructSymbol <ProcessEntity> .From <T> symbol, int?timeout = null) where T : Entity { using (var pe = normalWindow.ConstructFrom(symbol)) { pe.WaitFinished(() => "Waiting for process after {0} to finish".FormatWith(symbol.Symbol), timeout); } }
public static Graph <T> .ConstructFromMany <F> FindConstructFromMany <F, T>(ConstructSymbol <T> .FromMany <F> symbol) where T : class, IEntity where F : class, IEntity { return((Graph <T> .ConstructFromMany <F>)FindOperation(typeof(F), symbol.Symbol)); }
public static Graph <T> .Construct FindConstruct <T>(ConstructSymbol <T> .Simple symbol) where T : class, IEntity { return((Graph <T> .Construct)FindOperation(typeof(T), symbol.Symbol)); }
public static new Construct Untyped <B>(ConstructSymbol <B> .Simple symbol) where B : class, IEntity { return(new Construct(symbol.Symbol)); }
public ConstructorOperationSettings(ConstructSymbol <T> .Simple constructOperation) : base(constructOperation.Symbol) { }
public static NormalPage <T> ConstructFromNormalPageSaved <F, T>(this IEntityButtonContainer <F> container, ConstructSymbol <T> .From <F> symbol) where T : Entity where F : Entity { container.OperationClick(symbol); return(new NormalPage <T>(container.Selenium, null).WaitLoaded()); }
public static NormalWindowProxy <T> ConstructFrom <F, FB, T>(this NormalWindowProxy <F> window, ConstructSymbol <T> .From <FB> symbol, int?timeOut = null) where T : Entity where FB : class, IEntity where F : Entity, FB { AutomationElement element = window.OperationCapture(symbol.Symbol, timeOut); return(new NormalWindowProxy <T>(element)); }
public static PopupControl <T> ConstructFromPopup <F, T>(this IEntityButtonContainer <F> container, ConstructSymbol <T> .From <F> symbol, string prefix = "New") where T : Entity where F : Entity { container.OperationClick(symbol); var popup = new PopupControl <T>(container.Selenium, prefix); container.Selenium.WaitElementPresent(popup.PopupLocator); return(popup); }
public static FrameModalProxy <T> ConstructFrom <F, T>(this IEntityButtonContainer <F> container, ConstructSymbol <T> .From <F> symbol) where T : Entity where F : Entity { var element = container.OperationClickCapture(symbol); return(new FrameModalProxy <T>(element).WaitLoaded()); }