public void ShouldCallModuleEventsOnce() { bootstrapper.Initialize(); bootstrapper.Dispose(); var testModule = LocalIocManager.Resolve <MyTestModule>(); var otherModule = LocalIocManager.Resolve <MyOtherModule>(); var anotherModule = LocalIocManager.Resolve <MyAnotherModule>(); testModule.PreInitializeCount.ShouldBe(1); testModule.InitializeCount.ShouldBe(1); testModule.PostInitializeCount.ShouldBe(1); testModule.ShutdownCount.ShouldBe(1); otherModule.PreInitializeCount.ShouldBe(1); otherModule.InitializeCount.ShouldBe(1); otherModule.PostInitializeCount.ShouldBe(1); otherModule.ShutdownCount.ShouldBe(1); otherModule.CallMeOnStartupCount.ShouldBe(1); anotherModule.PreInitializeCount.ShouldBe(1); anotherModule.InitializeCount.ShouldBe(1); anotherModule.PostInitializeCount.ShouldBe(1); anotherModule.ShutdownCount.ShouldBe(1); }
public void Stop() { studioXBootstrapper.Dispose(); }
public virtual void Dispose() { StudioXBootstrapper.Dispose(); LocalIocManager.Dispose(); }