public async Task Get() { var settings = CreateServiceAgentSettings(); var serviceProvider = CreateServiceProvider(settings); var agent = new TestAgent(serviceProvider, Options.Create(settings)); agent.HttpClient = CreateClient(); var response = await agent.GetTestDataAsync(); Assert.NotNull(response); Assert.Equal("Name", response.Name); Assert.Equal(150, response.Number); }