public void Databus_mutators_should_not_be_registered_if_no_databus_property_is_found()
        {
            Configure.With(new[] { typeof(MessageWithoutDataBusProperty) })
                .DefaultBuilder();

            var bootStrapper = new Bootstrapper();

            bootStrapper.Init();

            Assert.False(Configure.Instance.Configurer.HasComponent<DataBusMessageMutator>());
        }
        public void Databus_mutators_should_be_registered_if_a_databus_property_is_found()
        {
            Configure.With(new[] {typeof (MessageWithDataBusProperty)})
                .DefaultBuilder();

            var bootStrapper = new Bootstrapper();

            Configure.Instance.Configurer.ConfigureComponent<InMemoryDataBus>(DependencyLifecycle.SingleInstance);

            bootStrapper.Init();

            Assert.True(Configure.Instance.Configurer.HasComponent<DataBusMessageMutator>());
        }