Robotlegs.Mvcs.Support.TestContext.GetInjector C# (CSharp) 메소드

GetInjector() 공개 메소드

public GetInjector ( ) : IInjector
리턴 IInjector
        public IInjector GetInjector()
        {
            return this.Injector;
        }

Usage Example

        public void RunBeforeEachTest()
        {
            contextView = new TestContextView();
            context = new Robotlegs.Mvcs.Support.TestContext( contextView );
            actor = new TestActor();
            injector = context.GetInjector();
            TestPanel.Children.Add( contextView );

            injector.InjectInto( actor );
        }