public async Task Post() { var settings = CreateServiceAgentSettings(); var serviceProvider = CreateServiceProvider(settings); var agent = new TestAgent(serviceProvider, Options.Create(settings)); agent.HttpClient = CreateClient(); var response = await agent.PostTestDataAsync(new TestModel { Name = "Name2", Number = 250 }); Assert.NotNull(response); Assert.Equal("Name2", response.Name); Assert.Equal(250, response.Number); }