private AppContainerInfo CreateAppContainer()
        {
            var serviceProvider     = GetDefaultServiceProviderWithoutChild();
            var rootServiceProvider = GetDefaultServiceProvider(serviceProvider);

            var appContainerFactory = new AppContainerFactory(rootServiceProvider);
            var appContainer        = appContainerFactory.CreateAppContainer();

            return(new AppContainerInfo()
            {
                AppContainer = appContainer,
                ServiceProvider = serviceProvider
            });
        }
        // *** Helper Methods ***

        private AppContainerWithChildInfo CreateAppContainerWithChild()
        {
            var childServiceProvider  = GetDefaultServiceProviderWithoutChild();
            var parentServiceProvider = GetDefaultServiceProvider(childServiceProvider);
            var rootServiceProvider   = GetDefaultServiceProvider(parentServiceProvider);

            var parentAppContainer = new AppContainerFactory(rootServiceProvider).CreateAppContainer();
            var childAppContainer  = new AppContainerFactory(parentServiceProvider).CreateAppContainer();

            return(new AppContainerWithChildInfo()
            {
                ChildAppContainer = childAppContainer,
                ParentAppContainer = parentAppContainer,
                ChildServiceProvider = childServiceProvider,
                ParentServiceProvider = parentServiceProvider
            });
        }