public void TestPayloadBuilderFromObject() { //TODO: Add ALL Field options... var tempObject = new { Topic = TestConfiguration.AzureServiceBusTopic, FifoGroupingId = "HttpProxy-IntegrationTest", To = "CajunCoding", Body = "Testing Json Payload from HttpProxy" }; var payloadBuilder = PayloadBuilder.FromObject(tempObject); Assert.AreEqual(TestConfiguration.AzureServiceBusTopic, payloadBuilder.PublishTarget); Assert.AreEqual("HttpProxy-IntegrationTest", payloadBuilder.FifoGroupingId); Assert.AreEqual("CajunCoding", payloadBuilder.To); Assert.AreEqual("Testing Json Payload from HttpProxy", payloadBuilder.Body); }