public void Build_throws_exception_if_object_not_provided()
        {
            var builder = new AzureIntegrationMessageBuilder();

            var ex = Should.Throw <InvalidOperationException>(() => builder.Build());

            ex.Message.ShouldBe("An object to be serialized must be provided to the WithObject method before calling build.");
        }
        public void Build_returns_AzureServiceBusMessage()
        {
            var builder = new AzureIntegrationMessageBuilder();

            builder.WithObject(_integrationEvent);

            var message = builder.Build();

            message.ShouldBeOfType <Message>();
        }