コード例 #1
0
        public TestServerHelper()
        {
            ClientProvider = new TestClientProvider();

            ApiServer = TestServer.Create((app) =>
            {
                app.UseServices(services =>
                {
                    services.AddTransient <IClientProvider>(s => ClientProvider);
                });
                app.UseMulti();
            });
        }
コード例 #2
0
        public TestServerHelper()
        {
            ClientProvider = new TestClientProvider();

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