public TestUmaServerFixture()
        {
            var startup = new FakeUmaStartup();

            Server = new TestServer(new WebHostBuilder()
                                    .UseUrls("http://localhost:5000")
                                    .ConfigureServices(services =>
            {
                services.AddSingleton <IStartup>(startup);
            }));
            Client = Server.CreateClient();
        }
        public TestUmaServerFixture()
        {
            SharedCtx = new SharedContext();
            var startup = new FakeUmaStartup(SharedCtx);

            Server = new TestServer(new WebHostBuilder()
                                    .UseUrls("http://localhost:5000")
                                    .ConfigureServices(services =>
            {
                services.AddSingleton <IStartup>(startup);
            })
                                    .UseSetting(WebHostDefaults.ApplicationKey, typeof(FakeUmaStartup).GetType().Assembly.FullName));
            Client = Server.CreateClient();
            FakeHttpClientFactory.Instance.Set(Server);
        }