private static WindsorContainer CreateContainer() { var container = new WindsorContainer(); container.Install(FromAssembly.Containing <IOrdersRepository>()); container.AutoRegisterHandlersFromAssembly(typeof(OrderHandler).Assembly); return(container); }