public async Task BindToPoco_UsingFields_Succeeds() { string testData = Guid.NewGuid().ToString(); TestPoco_Fields poco = new TestPoco_Fields { A = Guid.NewGuid().ToString(), B = Guid.NewGuid().ToString() }; HttpResponseMessage response = await _fixture.Client.PostAsJsonAsync("WebHookTestFunctions/BindToPoco_Fields", poco); Assert.Equal(HttpStatusCode.OK, response.StatusCode); TestPoco_Fields resultPoco = (TestPoco_Fields)WebHookTestFunctions.InvokeData; Assert.Equal(poco.A, resultPoco.A); Assert.Equal(poco.B, resultPoco.B); }
public static void BindToPoco_Fields([WebHookTrigger] TestPoco_Fields poco) { InvokeData = poco; }