public static IServiceProvider BuildContainer(Action <IContainerBuilder> action)
        {
            IContainerBuilder builder = new TestContainerBuilder();

            builder.AddDefaultODataServices();

            if (action != null)
            {
                action(builder);
            }

            return(builder.BuildContainer());
        }
        public static IServiceProvider BuildContainer(Action <IContainerBuilder> action)
        {
            IContainerBuilder builder = new TestContainerBuilder();

            builder.AddDefaultODataServices();
            builder.AddServicePrototype(new ODataMessageWriterSettings()
            {
                IgnoreNullValues = false
            });

            if (action != null)
            {
                action(builder);
            }

            return(builder.BuildContainer());
        }