Esempio n. 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"));
 }
Esempio n. 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);
        }