Robotlegs.Mvcs.Support.TestContext.Startup C# (CSharp) Méthode

Startup() public méthode

public Startup ( ) : void
Résultat void
        public override void Startup()
        {
            startupComplete = true;
            base.Startup();
        }

Usage Example

        public void ManualStartupWithViewComponentAfterAddedToStage()
        {
            contextView = new TestContextView();
            context = new Robotlegs.Mvcs.Support.TestContext( contextView, false );

            contextView.Loaded += (o, e) =>
            {
                Assert.IsFalse( context.StartupComplete, "Context should not be started" );
                context.Startup();
                Assert.IsTrue(  context.StartupComplete, "Context should now be started" );
                EnqueueTestComplete();
            };

            Assert.IsFalse( context.StartupComplete, "Context should not be started" );
            TestPanel.Children.Add( contextView );
        }
All Usage Examples Of Robotlegs.Mvcs.Support.TestContext::Startup