// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
        {
            loggerFactory.AddConsole(Configuration.GetSection("Logging"));
            loggerFactory.AddDebug();

            var context = app.ApplicationServices.GetService <ApiContext>();

            bool useInMemoryDatabase = Configuration.GetValue <bool>("InMemoryDatabase", true);

            if (useInMemoryDatabase)
            {
                TestDataCreator.Create(context);
            }

            app.UseMvc();
        }