public void Start() { var factory = new WebApplicationFactory <Startup>().WithWebHostBuilder(configuration => { configuration.ConfigureLogging(logging => { logging.ClearProviders(); // stop the output being incredibly verbose since we're doing thousands of requests }); }); this.server = factory; this.client = factory.CreateDefaultClient(); this.data = DataGenerator.Generate <MyEventsListerViewModel>(); }
public ActionResult Post(MyEventsListerViewModel viewModel) { return(this.Ok()); }