public void Install(IWindsorContainer container, IConfigurationStore store)
{
//Bus
var bus = new InProcessBus(container);
container.Register(Component.For<IBus>().Instance(bus));
var eventStore = GetInitializedEventStore(bus);
var repository = new EventStoreRepository(eventStore, new AggregateFactory(), new ConflictDetector());
container.Register(Component.For<IStoreEvents>().Instance(eventStore));
container.Register(Component.For<IRepository>().Instance(repository));
}