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)); }
protected override void beforeEach() { activator1 = new StubActivator(); activator2 = new StubActivator(); activator3 = new StubActivator(); ClassUnderTest.PushProvenance("A"); ClassUnderTest.AddActivator(activator1); ClassUnderTest.PushProvenance("B"); ClassUnderTest.AddActivator(activator2); ClassUnderTest.PopProvenance(); ClassUnderTest.AddActivator(activator3); }