public static IUnityContainer ConfigureUnity(ISettingsContainer settingsContainer)
        {
            IUnityContainer container = new UnityContainer();
            container.AttachQueryableContainerExtension()
                     .UseParameterResolvers(new ParameterResolver[]
                                                 {
                                                     OperationServicesDependencyResolver
                                                 }
                                                .Concat(AggregatesLayerParameterResolvers.Defaults)
                                                .Concat(ParameterResolvers.Defaults));

            var massProcessors = new IMassProcessor[]
                {
                    new AggregatesLayerMassProcessor(container, x => null),
                    new EFDbModelMassProcessor(container)
                };

            container
                .ConfigureSettingsAspects(settingsContainer)
                .ConfigureIndentityInfrastructure(EntryPointSpecificLifetimeManagerFactory)
                .ConfigureStorageLayer(EntryPointSpecificLifetimeManagerFactory)
                .ConfigureSecurityInfrastructure();

            SampleAppRoot.Instance.PerformTypesMassProcessing(massProcessors, true, typeof(object));
            SampleAppRoot.Instance.PerformTypesMassProcessing(massProcessors, false, typeof(object));

            return container;
        }