示例#1
0
        public async Task StartupAsync()
        {
            _factory.Should().NotBeNull();
            var client = _factory.CreateClient();

            client.Should().NotBeNull();
            var result = await client.GetAsync("/");

            result.IsSuccessStatusCode.Should().BeTrue();
        }
示例#2
0
 public void Startup()
 {
     _factory.Should().NotBeNull();
     _factory.CreateClient().Should().NotBeNull();
 }