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>();
        }
Esempio n. 2
0
 public ActionResult Post(MyEventsListerViewModel viewModel)
 {
     return(this.Ok());
 }