public void end_to_end_test()
        {
            theRuntime.Scenario(_ =>
            {
                _.Post.Json(new Message1Input());
                _.StatusCodeShouldBeOk();
                _.ContentShouldContain("\"success\":true");
            });

            theServiceBus.AssertWasCalled(x => x.Send(new Message1()), x => x.IgnoreArguments());
        }
        public void end_to_end_test()
        {
            using (var server = new EmbeddedFubuMvcServer(theRuntime))
            {
                var response = server.Endpoints.PostJson(new Message1Input());

                theServiceBus.AssertWasCalled(x => x.Send(new Message1()), x => x.IgnoreArguments());


                response.StatusCode.ShouldEqual(HttpStatusCode.OK);
                response.ReadAsText().ShouldContain("\"success\":true");
            }
        }