Ejemplo n.º 1
0
        public virtual void TestCreateInjector2()
        {
            TestWebAppTests.FooBar foobar = new TestWebAppTests.FooBar();
            TestWebAppTests.Bar    bar    = new TestWebAppTests.Bar();
            Injector injector             = WebAppTests.CreateMockInjector <TestWebAppTests.Foo>(bar, new
                                                                                                 _AbstractModule_77(foobar));

            NUnit.Framework.Assert.AreNotSame(bar, injector.GetInstance <TestWebAppTests.Bar>(
                                                  ));
            NUnit.Framework.Assert.AreSame(foobar, injector.GetInstance <TestWebAppTests.Bar>(
                                               ));
        }
Ejemplo n.º 2
0
 public _AbstractModule_77(TestWebAppTests.FooBar foobar)
 {
     this.foobar = foobar;
 }