Example #1
0
        public void SetUp()
        {
            diagnostics = new BottlingDiagnostics(new LoggingSession());

            activator1 = new StubActivator();
            activator2 = new StubActivator();
            activator3 = new StubActivator();

            bootstrapper = new StubBootstrapper("Boot1", activator1, activator2, activator3);

            diagnostics.LogBootstrapperRun(bootstrapper, bootstrapper.Bootstrap(null));
        }
Example #2
0
        protected override void beforeEach()
        {
            bootstrapper1 = new StubBootstrapper("a");
            bootstrapper2 = new StubBootstrapper("b");
            bootstrapper3 = new StubBootstrapper("c");

            ClassUnderTest.PushProvenance("A");
            ClassUnderTest.AddBootstrapper(bootstrapper1);

            ClassUnderTest.PushProvenance("B");
            ClassUnderTest.AddBootstrapper(bootstrapper2);

            ClassUnderTest.PopProvenance();
            ClassUnderTest.AddBootstrapper(bootstrapper3);
        }