private void ConfigureTestDependencies(IIocContainer container)
        {
            container.UseXunitLogging(output, !options.VerboseLogging);

            if (options.UseMockOutput)
                container.For<IMockLogger>().UseSingleton<MockLogger>();
            else
                container.For<IMockLogger>().Use<NoMockLogging>();
        }
        public static void Configure(HttpConfiguration httpConfiguration, IIocContainer container)
        {
            httpConfiguration.MapHttpAttributeRoutes();

            if (container != null)
            {
                httpConfiguration.Using(container)
                    .AddExceptionLogger()
                    .AddIocBasedControllerActivator();

                httpConfiguration.Filters.Add(new ForwardedByFilter());

                container.UseSingleton<CachedProductCatalog>();
                container.For<ICartIdProvider>().Use<CardIdProvider>();
            }

            httpConfiguration.EnsureInitialized();
        }
        private void RegisterTestFields(IIocContainer container)
        {
            // fake notifications
            container.For<INotifications>().Use(Notifications);

            // mocked product catalog
            container.Use<IProductCatalog>(ProductCatalog);

            container.For<IShoppingCarts>().Use(shoppingCartStore);
        }