private void Start() { var vStore = new EmbeddableDocumentStore { ConnectionStringName = "RavenDB" }; vStore.Initialize(); mShip = new WindsorShip(); mShip.Crew.Add(new DiceCrew()); mShip.Crew.Add(new SecurityCrew()); mShip.Crew.Add(new DatabaseCrew(vStore)); mShip.Crew.Add(new AccountCrew()); mShip.Crew.Add(new ControllerCrew()); mShip.Crew.Add(new GameCrew()); mShip.Crew.Add(new WebCrews()); mShip.Crew.Add(new CharactersCrew()); mShip.SetSail(); ControllerBuilder.Current.SetControllerFactory( mShip.GetService(typeof (IControllerFactory)) as IControllerFactory); ModelBinders.Binders.DefaultBinder = new WindsorModelBinder(mShip); }