public void WhenTheContainerIsUpdated_ExistingStartableComponentsAreNotReStarted() { var startable1 = Mocks.GetStartable(); var startable2 = Mocks.GetStartable(); var builder1 = new ContainerBuilder(); builder1.RegisterInstance(startable1).As <IStartable>(); var container = builder1.Build(); Assert.Equal(1, startable1.StartCount); var builder2 = new ContainerBuilder(); builder2.RegisterInstance(startable2).As <IStartable>(); #pragma warning disable CS0618 builder2.Update(container); #pragma warning restore CS0618 Assert.Equal(1, startable1.StartCount); Assert.Equal(1, startable2.StartCount); }