Exemple #1
0
            public Construct(ConstructSymbol <T> .Simple symbol)
            {
                if (symbol == null)
                {
                    throw AutoInitAttribute.ArgumentNullException(typeof(ConstructSymbol <T> .Simple), nameof(symbol));
                }

                this.operationSymbol = symbol.Symbol;
            }
Exemple #2
0
            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;
            }
Exemple #3
0
            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;
            }
Exemple #4
0
        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);
        }
Exemple #5
0
        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);
        }
Exemple #7
0
 public static new ConstructFromMany <F> Untyped <B>(ConstructSymbol <B> .FromMany <F> symbol)
     where B : class, IEntity
 {
     return(new ConstructFromMany <F>(symbol.Symbol, symbol.BaseType));
 }
Exemple #8
0
 public ConstructFromMany(ConstructSymbol <T> .FromMany <F> symbol)
     : base(symbol)
 {
     ToStates = new List <S>();
 }
Exemple #9
0
 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()));
        }
Exemple #11
0
 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)));
 }
Exemple #12
0
        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));
 }
Exemple #14
0
 public Construct(ConstructSymbol <T> .Simple symbol)
     : base(symbol)
 {
     ToStates = new List <S>();
 }
Exemple #15
0
 public PackageConstructFromAlgorithm(ConstructSymbol <T> .From <F> symbol)
 {
     this.Symbol = symbol;
 }
Exemple #16
0
 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);
     }
 }
Exemple #17
0
 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));
 }
Exemple #18
0
 public static Graph <T> .Construct FindConstruct <T>(ConstructSymbol <T> .Simple symbol)
     where T : class, IEntity
 {
     return((Graph <T> .Construct)FindOperation(typeof(T), symbol.Symbol));
 }
Exemple #19
0
 public static new Construct Untyped <B>(ConstructSymbol <B> .Simple symbol)
     where B : class, IEntity
 {
     return(new Construct(symbol.Symbol));
 }
Exemple #20
0
 public ConstructorOperationSettings(ConstructSymbol <T> .Simple constructOperation)
     : base(constructOperation.Symbol)
 {
 }
Exemple #21
0
        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());
        }
Exemple #22
0
        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));
        }
Exemple #23
0
        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());
        }