Ejemplo n.º 1
0
        public TestServerHelper()
        {
            ClientProvider = new TestClientProvider();

            ApiServer = TestServer.Create((app) =>
            {
                app.UseServices(services =>
                {
                    services.AddTransient <IClientProvider>(s => ClientProvider);
                });
                app.UseMulti();
            });
        }
Ejemplo n.º 2
0
        public TestServerHelper()
        {
            ClientProvider = new TestClientProvider();

            ApiServer = TestServer.Create((app) =>
            {
                app.UseServices(services =>
                {
                    services.AddTransient<IClientProvider>(s => ClientProvider);
                });
                app.UseMulti();
            });
        }