コード例 #1
0
 public ModelBindingSpecs(ITestOutputHelper console)
 {
     this.console = console;
     client
         = new TestServer(ProgramAndStartup.CreateWebHostBuilder(new string[0]))
           .CreateClient()
           .With(c => c.BaseAddress = new Uri("https://localhost"));
 }
コード例 #2
0
        public void CanCreateTestServerAndCreateClient()
        {
            var client
                = new TestServer(ProgramAndStartup.CreateWebHostBuilder(new string[0]))
                  .CreateClient()
                  .With(c => c.BaseAddress = new Uri("https://localhost"));

            Xunit.Assert.NotNull(client);
        }